@Test
  public void testPointEncode() throws Exception {
    for (TestVector2 test : testVectors2) {
      EllipticCurve curve = EllipticCurves.getCurveSpec(test.curve).getCurve();
      ECPoint p = new ECPoint(test.x, test.y);
      byte[] encoded = EllipticCurves.pointEncode(curve, test.format, p);
      assertEquals(Hex.encode(encoded), Hex.encode(test.encoded));
    }
  }
A class for storing test vectors. This class contains the directory for the public and private
key, the message and the corresponding signature.
java_src/src/test/java/com/google/crypto/tink/subtle/EllipticCurvesTest.java