catch ( DecoderException de )
{
fail( de.getMessage() );
}
EncAsRepPart encAsRepPart = encAsRepPartContainer.getEncAsRepPart();
// Check the encoding
int length = encAsRepPart.computeLength();
// Check the length
assertEquals( 0xA2, length );
// Check the encoding
ByteBuffer encodedPdu = ByteBuffer.allocate( length );
try
{
encodedPdu = encAsRepPart.encode( encodedPdu );
// Check the length
assertEquals( 0xA2, encodedPdu.limit() );
}
catch ( EncoderException ee )