catch ( DecoderException de )
{
fail( de.getMessage() );
}
ApRep apRep = (ApRep)kerberosMessageContainer.getMessage();
// Check the encoding
int length = apRep.computeLength();
// Check the length
assertEquals( 0x21, length );
// Check the encoding
ByteBuffer encodedPdu = ByteBuffer.allocate( length );
try
{
encodedPdu = apRep.encode( encodedPdu );
// Check the length
assertEquals( 0x21, encodedPdu.limit() );
}
catch ( EncoderException ee )