@Theory
  public void test_computeAndValidate_modifiedMessage_throws(
      @FromDataPoints("testVectors") SignatureTestVector testVector) throws Exception {
    RsaSsaPssPrivateKey key = (RsaSsaPssPrivateKey) testVector.getPrivateKey();
    byte[] modifiedMessage = Bytes.concat(testVector.getMessage(), new byte[] {1});
    PublicKeyVerify verifier = RsaSsaPssVerifyJce.create(key.getPublicKey());
    assertThrows(
        GeneralSecurityException.class,
        () -> verifier.verify(testVector.getSignature(), modifiedMessage));
  }
Tests that the verification fails for a different message.
java_src/src/test/java/com/google/crypto/tink/subtle/RsaSsaPssSignJceTest.java