*/
public void testMuwsStartStop( )
throws Exception
{
m_stub.start( new Start( ) );
GetResourcePropertyResponse resourceProperty =
m_stub.getResourceProperty( Muws05Constants.RESOURCE_PROP_QNAME_RESOURCE_STATE );
MessageElement[] propElems = resourceProperty.get_any( );
assertEquals( new Integer( 1 ),
new Integer( propElems.length ) );
SOAPElement stateElem =
(SOAPElement) propElems[0].getChildElements( new QName( Muws05Constants.NSURI_MUWS_SCHEMA, "State" ) )
.next( );
assertNotNull( stateElem );
assertEquals( Muws05Constants.RESOURCE_STATE_URI_AVAILABLE,
stateElem.getValue( ) );
m_stub.stop( new Stop( ) );
resourceProperty = m_stub.getResourceProperty( Muws05Constants.RESOURCE_PROP_QNAME_RESOURCE_STATE );
propElems = resourceProperty.get_any( );
assertEquals( new Integer( 1 ),
new Integer( propElems.length ) );
stateElem =
(SOAPElement) propElems[0].getChildElements( new QName( Muws05Constants.NSURI_MUWS_SCHEMA, "State" ) )
.next( );