} );
String decodedPdu = Strings.dumpBytes( stream.array() );
stream.flip();
ChecksumContainer chkContainer = new ChecksumContainer();
try
{
krbDecoder.decode( stream, chkContainer );
}
catch ( DecoderException de )
{
fail( de.getMessage() );
}
Checksum checksum = chkContainer.getChecksum();
assertEquals( ChecksumType.getTypeByValue( 2 ), checksum.getChecksumType() );
assertTrue( Arrays.equals( Strings.getBytesUtf8( "chksum" ), checksum.getChecksumValue() ) );
ByteBuffer bb = ByteBuffer.allocate( checksum.computeLength() );