@Test
public void testPointOnCurve() throws Exception {

  for (int i = 0; i < testVectors1.length; i++) {
    ECPoint pubPoint =
        new ECPoint(
            new BigInteger(testVectors1[i].pubX, 16), new BigInteger(testVectors1[i].pubY, 16));
    try {
      EllipticCurves.checkPointOnCurve(pubPoint, testVectors1[i].getCurve());
    } catch (GeneralSecurityException ex) {
      fail("The valid public point is not on the curve: " + ex.getMessage());
    }
  }
}