catch ( Exception e )
{
fail( e.getMessage() );
}
ExtendedResponseDsml extendedResponse = ( ExtendedResponseDsml ) parser.getBatchResponse().getCurrentResponse();
assertEquals( "This is a response", Strings.utf8ToString( extendedResponse.getResponseValue() ) );
try
{
assertEquals( new Oid( "1.2.3.4.5.6.7.8.9.0" ).toString(), extendedResponse.getResponseName().toString() );
}
catch ( DecoderException e )
{
fail();
}