@Test
  public void testFailIfFipsModuleNotAvailable() throws Exception {
    Assume.assumeTrue(TinkFips.useOnlyFips());

    byte[] key = Random.randBytes(32);
    assertThrows(
        GeneralSecurityException.class,
        () -> new InsecureNonceChaCha20Poly1305(key));
  }
This test simply checks that multiple ciphertexts of the same message with a different nonce
are distinct.
java_src/src/test/java/com/google/crypto/tink/aead/internal/InsecureNonceChaCha20Poly1305Test.java