public boolean test()
{
try
{
Object oDoc = m_xMSF.createInstance( "com.sun.star.comp.Draw.DrawingDocument" );
XLoadable xLoad = (XLoadable) UnoRuntime.queryInterface( XLoadable.class, oDoc );
if ( xLoad == null )
{
m_aTestHelper.Error( "Can not get XLoadable!" );
return false;
}
xLoad.initNew();
XDrawPagesSupplier xDPSupply = (XDrawPagesSupplier) UnoRuntime.queryInterface( XDrawPagesSupplier.class, oDoc );
if ( xDPSupply == null )
{
m_aTestHelper.Error( "Can not get XDrawPagesSupplier!" );