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