} );
String decodedPdu = Strings.dumpBytes( bb.array() );
bb.flip();
PasswordModifyResponseContainer container = new PasswordModifyResponseContainer();
try
{
decoder.decode( bb, container );
}
catch ( DecoderException de )
{
de.printStackTrace();
fail( de.getMessage() );
}
PasswordModifyResponse pwdModifyResponse = container.getPwdModifyResponse();
assertNotNull( pwdModifyResponse.getGenPassword() );
assertEquals( "abcd", Strings.utf8ToString( pwdModifyResponse.getGenPassword() ) );
// Check the length
assertEquals( 0x08, ( ( PasswordModifyResponseDecorator ) pwdModifyResponse ).computeLengthInternal() );