@Test
  public void testCreateFailsIfNotSupported() throws Exception {
    Assume.assumeFalse(XChaCha20Poly1305Jce.isSupported());

    XChaCha20Poly1305Key key = XChaCha20Poly1305Key.create(SecretBytes.randomBytes(32));
    assertThrows(GeneralSecurityException.class, () -> XChaCha20Poly1305Jce.create(key));
  }
Test case taken from Wycheproof (testcase 5)
https://github.com/google/wycheproof/blob/b063b4aedae951c69df014cd25fa6d69ae9e8cb9/testvectors/xchacha20_poly1305_test.json#L69
java_src/src/test/java/com/google/crypto/tink/aead/internal/XChaCha20Poly1305JceTest.java