@Test
  public void testFipsOnlyModeConsistentEnabled() {
    // If the TinkFipsUtil reports that FIPS-mode is enabled, then TinkFips must report that
    // FIPS-mode is enabled.
    Assume.assumeTrue(TinkFipsUtil.useOnlyFips());
    assertThat(TinkFips.useOnlyFips()).isTrue();
  }
Tests for TinkFips. The tests here check the behavior of Tink when built with or without the
--use_only_fips flag. In order to get complete coverage a build should be tested with: 1) Build
without the --use_only_fips flag. 2) Build with the --use_only_fips flag, and BoringCrypto not
being available. 3) Build with the --use_only_fips flag, and BoringCrypto being available.
java_src/src/test/java/com/google/crypto/tink/config/TinkFipsTest.java