catch ( DecoderException e )
{
fail();
}
KrbError krbError = container.getKrbError();
assertNull( krbError.getCTime() );
assertEquals( 0, krbError.getCusec() );
assertNull( krbError.getCRealm() );
assertNull( krbError.getCName() );
assertNull( krbError.getEText() );
assertNull( krbError.getEData() );
int encodedLen = krbError.computeLength();
assertEquals( streamLen, encodedLen );
ByteBuffer buffer = ByteBuffer.allocate( streamLen );
try
{
buffer = krbError.encode( buffer );
assertEquals( decoded, Strings.dumpBytes( buffer.array() ) );
}
catch ( EncoderException e )
{