catch ( DecoderException de )
{
fail( de.getMessage() );
}
AsRep asRep = asRepContainer.getAsRep();
// Check the encoding
int length = asRep.computeLength();
// Check the length
assertEquals( 0xAC, length );
// Check the encoding
ByteBuffer encodedPdu = ByteBuffer.allocate( length );
try
{
encodedPdu = asRep.encode( encodedPdu );
// Check the length
assertEquals( 0xAC, encodedPdu.limit() );
}
catch ( EncoderException ee )