@Test
public void testPointDecode() throws Exception {

  for (TestVector2 test : testVectors2) {
    EllipticCurve curve = EllipticCurves.getCurveSpec(test.curve).getCurve();
    ECPoint p = EllipticCurves.pointDecode(curve, test.format, test.encoded);
    assertEquals(p.getAffineX(), test.x);
    assertEquals(p.getAffineY(), test.y);
  }
}