@Theory
  public void testVector_decrypt_works(@FromDataPoints("testVectors") TestVector vector)
      throws Exception {
    // We cannot use "Assume" here because Theories will complain that no input does any test.
    if (TinkFips.useOnlyFips()) {
      return;
    }
    byte[] fullCiphertext = Hex.decode(vector.hexNonce + vector.hexCiphertext);
    AesEaxJce eax = new AesEaxJce(Hex.decode(vector.hexKey), Hex.decode(vector.hexNonce).length);
    byte[] decryption = eax.decrypt(fullCiphertext, Hex.decode(vector.hexAad));
    assertThat(Hex.encode(decryption)).isEqualTo(vector.hexMessage);
  }
This is a very simple test for the randomness of the nonce. The test simply checks that the
multiple ciphertexts of the same message are distinct.
java_src/src/test/java/com/google/crypto/tink/subtle/AesEaxJceTest.java