throws Exception
{
// Test operation
SetResourceProperties_Element request =
new SetResourceProperties_Element( );
MessageElement block_size_ele =
new MessageElement( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE );
MessageElement num_blocks_ele =
new MessageElement( ExampleConstants.RESOURCE_PROP_QNAME_NUMBER_OF_BLOCKS );
MessageElement manu_ele =
new MessageElement( ExampleConstants.RESOURCE_PROP_QNAME_MANUFACTURER );
SetRequestComponentType[] set_components =
new SetRequestComponentType[4];
String bsValue = "7777";
block_size_ele.addTextNode( bsValue );
String nobValue = "55";
num_blocks_ele.addTextNode( nobValue );
manu_ele.addTextNode( "Another XYZ Company" );
set_components[0] = new UpdateType( );
set_components[1] = new UpdateType( );
set_components[2] = new UpdateType( );
set_components[3] = new DeleteType( );
( (UpdateType) set_components[0] ).set_any( new MessageElement[]
{
block_size_ele
} );
( (UpdateType) set_components[1] ).set_any( new MessageElement[]
{
num_blocks_ele
} );
( (UpdateType) set_components[2] ).set_any( new MessageElement[]
{
manu_ele
} );
( (DeleteType) set_components[3] ).setResourceProperty( NameUtils.toQName( manu_ele.getElementName( ) ) );
request.setSetRequestComponent( set_components );
m_stub.setResourceProperties( request );
assertContainsExactlyOnePropertyWithValue( bsValue,