@Test
  public void testNoFallback() throws Exception {
    Provider p = Conscrypt.newProvider();
    Security.addProvider(p);

    // Conscrypt does not provide "AES", so this must fail and not use another provider.
    assertThrows(GeneralSecurityException.class, () -> EngineFactory.CIPHER.getInstance("AES"));
  }
Tests for EngineFactory when Tink is build in FIPS-mode.
java_src/src/test/java/com/google/crypto/tink/subtle/EngineFactoryFipsTest.java