@Test
  public void testEncryptDecryptLongMessage() throws Exception {
    Assume.assumeFalse(TinkFips.useOnlyFips());

    byte[] key = Random.randBytes(KEY_SIZE);
    AesEaxJce eax = new AesEaxJce(key, IV_SIZE);

    byte[] message = Random.randBytes(150000);
    byte[] aad = Random.randBytes(20);

    byte[] ciphertext = eax.encrypt(message, aad);
    byte[] decrypted = eax.decrypt(ciphertext, aad);
    assertArrayEquals(message, decrypted);
  }
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