@Test
  public void pointDecode_compressed_failsIfEncodingIsInvalid() throws Exception {
    // Same as an entry of testVectors2, but the last byte is changed from 00 to 01
    byte[] encoded =
        Hex.decode("020000000000000000000000000000000000000000000000000000000000000001");
    assertThrows(GeneralSecurityException.class,
        () -> EllipticCurves.pointDecode(EllipticCurves.CurveType.NIST_P256,
            EllipticCurves.PointFormatType.COMPRESSED, 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