@Test
public void testAuthorizationDataThreeAD() throws Exception
{
AuthorizationData ad = new AuthorizationData();
ad.addEntry( new AuthorizationDataEntry( AuthorizationType.AD_KDC_ISSUED, new byte[]
{ 0x01, 0x02, 0x03, 0x04 } ) );
ad.addEntry( new AuthorizationDataEntry( AuthorizationType.AD_IF_RELEVANT, new byte[]
{ 0x05, 0x06, 0x07, 0x08 } ) );
ad.addEntry( new AuthorizationDataEntry( AuthorizationType.AD_MANDATORY_TICKET_EXTENSIONS, new byte[]
{ 0x09, 0x0A, 0x0B, 0x0C } ) );
ByteBuffer encoded = ByteBuffer.allocate( ad.computeLength() );
ad.encode( encoded );