@Test
  public void testIsAndroid() throws Exception {
    try {
      Class<?> buildVersion = Class.forName("android.os.Build$VERSION");
      assertThat(Util.isAndroid()).isTrue();
    } catch (ReflectiveOperationException e) {
      assertThat(Util.isAndroid()).isFalse();
    }
  }
Tests for Tink internal Util class.
java_src/src/test/java/com/google/crypto/tink/internal/UtilTest.java