@Test
  public void pointDecode_uncompressed_failsIfPointIsNotOnCurve() throws Exception {
    // Same an entry of testVectors2, but the last byte is changed from f7 to f6
    byte[] encoded =
        Hex.decode(
            "04"
                + "b0cfc7bc02fc980d858077552947ffb449b10df8949dee4e56fe21e016dcb25a"
                + "1886ccdca5487a6772f9401888203f90587cc00a730e2b83d5c6f89b3b568df6");
    // Adding one to y make the point not be on the curve.
    assertThrows(GeneralSecurityException.class,
        () -> EllipticCurves.pointDecode(EllipticCurves.CurveType.NIST_P256,
            EllipticCurves.PointFormatType.UNCOMPRESSED, 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