String decoded = Strings.dumpBytes(stream.array());
Asn1Decoder decoder = new Asn1Decoder();
KrbPrivContainer container = new KrbPrivContainer( stream );
try
{
decoder.decode( stream, container );
}
catch( DecoderException e )
{
fail();
}
KrbPriv krbPriv = container.getKrbPriv();
assertEquals( 5, krbPriv.getProtocolVersionNumber() );
assertEquals( KerberosMessageType.KRB_PRIV, krbPriv.getMessageType() );
assertNotNull( krbPriv.getEncPart() );