}
stream.flip();
Asn1Decoder decoder = new Asn1Decoder();
EncTicketPartContainer container = new EncTicketPartContainer( stream );
try
{
decoder.decode( stream, container );
}
catch ( DecoderException e )
{
fail();
}
EncTicketPart actual = container.getEncTicketPart();
assertEquals( expected.getFlags(), actual.getFlags() );
assertEquals( expected.getKey(), actual.getKey() );
assertEquals( expected.getCRealm(), actual.getCRealm() );
assertEquals( expected.getCName(), actual.getCName() );