@Test
  public void get_failsIfConscryptNotAvailable() throws Exception {
    Assume.assumeFalse(TinkFipsUtil.fipsModuleAvailable());

    assertThrows(GeneralSecurityException.class, ConfigurationFips140v2::get);
  }
This test ensures that ConfigurationFips140v2 is not created if Conscrypt is not registered.
java_src/src/test/java/com/google/crypto/tink/ConfigurationFips140v2WithoutConscryptTest.java