{
e.printStackTrace();
fail();
}
KrbSafe krbSafe = container.getKrbSafe();
assertEquals( 5, krbSafe.getProtocolVersionNumber() );
assertEquals( KerberosMessageType.KRB_SAFE, krbSafe.getMessageType() );
assertNotNull( krbSafe.getChecksum() );
assertNotNull( krbSafe.getSafeBody() );
int encodedLen = krbSafe.computeLength();
assertEquals( streamLen, encodedLen );
try
{
ByteBuffer bb = ByteBuffer.allocate( encodedLen );
krbSafe.encode( bb );
String encoded = Strings.dumpBytes( bb.array() );
assertEquals( decoded, encoded );
}
catch ( EncoderException e )