catch ( DecoderException de )
{
fail( de.getMessage() );
}
EncApRepPart encApRepPart = ( ( EncApRepPartContainer ) encApRepPartContainer ).getEncApRepPart();
// Check the encoding
int length = encApRepPart.computeLength();
// Check the length
assertEquals( 0x33, length );
// Check the encoding
ByteBuffer encodedPdu = ByteBuffer.allocate( length );
try
{
encodedPdu = encApRepPart.encode( encodedPdu );
// Check the length
assertEquals( 0x33, encodedPdu.limit() );
assertEquals( decodedPdu, Strings.dumpBytes( encodedPdu.array() ) );
}