@Test
  public void testPointOnCurve() throws Exception {
    for (EllipticCurvesUtilTest.TestVector element : testVectors) {
      ECPoint pubPoint =
          new ECPoint(new BigInteger(element.pubX, 16), new BigInteger(element.pubY, 16));
      try {
        EllipticCurvesUtil.checkPointOnCurve(pubPoint, element.getCurve());
      } catch (GeneralSecurityException ex) {
        fail("The valid public point is not on the curve: " + ex.getMessage());
      }
    }
  }
Unit tests for {@link com.google.crypto.tink.subtle.EllipticCurvesUtil}.
java_src/src/test/java/com/google/crypto/tink/internal/EllipticCurvesUtilTest.java