ByteBuffer stream = ByteBuffer.allocate( eData.length );
stream.put( eData );
stream.flip();
Asn1Decoder decoder = new Asn1Decoder();
MethodDataContainer container = new MethodDataContainer();
container.setStream( stream );
decoder.decode( stream, container );
MethodData padata = container.getMethodData();
assertEquals( 2, padata.getPaDatas().length );
assertEquals( PaDataType.PA_ENCTYPE_INFO2, padata.getPaDatas()[1].getPaDataType() );
assertEquals( PaDataType.PA_ENC_TIMESTAMP, padata.getPaDatas()[0].getPaDataType() );
}
}