### Question:
AEAD { public AEAD( final byte[] myKey, final byte[] otherKey, final byte[] myIV, final byte[] otherIV, final byte[] myPnKey, final byte[] otherPnKey) { this.myKey = prepareKey(myKey); this.otherKey = prepareKey(otherKey); this.myIV = prepareIV(myIV); this.otherIV = prepareIV(otherIV); this.myPnKey = prepareKey(myPnKey); this.otherPnKey = prepareKey(otherPnKey); } AEAD(
      final byte[] myKey,
      final byte[] otherKey,
      final byte[] myIV,
      final byte[] otherIV,
      final byte[] myPnKey,
      final byte[] otherPnKey); byte[] open(final byte[] src, final long packetNumber, final byte[] aad); byte[] seal(final byte[] src, final long packetNumber, final byte[] aad); int getSampleLength(); byte[] decryptHeader(final byte[] sample, final byte[] bs, final boolean shortHeader); byte[] encryptHeader(final byte[] sample, final byte[] bs, final boolean shortHeader); byte[] getMyKey(); byte[] getOtherKey(); byte[] getMyIV(); byte[] getOtherIV(); byte[] getMyPnKey(); byte[] getOtherPnKey(); @Override String toString(); static final int OVERHEAD; }### Answer:
@Test public void testAEAD() throws GeneralSecurityException { final AEAD testAEAD = TestAEAD.create(); final byte[] ct = testAEAD.seal(plainText, packetNumber, aad); final byte[] pt = testAEAD.open(ct, packetNumber, aad); assertArrayEquals(pt, plainText); }