@Test
  public void convertToJacobianAndBack_isEqual() throws Exception {
    for (EllipticCurvesUtilTest.TestVector element : testVectors) {
      BigInteger modulus = EllipticCurvesUtil.getModulus(element.curveParams.getCurve());
      ECPoint point =
          new ECPoint(new BigInteger(element.pubX, 16), new BigInteger(element.pubY, 16));
      assertThat(EllipticCurvesUtil.toJacobianEcPoint(point, modulus).toECPoint(modulus))
          .isEqualTo(point);
    }
  }
Unit tests for {@link com.google.crypto.tink.subtle.EllipticCurvesUtil}.
java_src/src/test/java/com/google/crypto/tink/internal/EllipticCurvesUtilTest.java