@Test
  public void test_serializeAndParse_works() throws Exception {
    SignatureTestVector testVector = ALL_TEST_VECTORS[0];
    com.google.crypto.tink.signature.RsaSsaPssPrivateKey key =
        (com.google.crypto.tink.signature.RsaSsaPssPrivateKey) testVector.getPrivateKey();
    KeysetHandle.Builder.Entry entry = KeysetHandle.importKey(key).withFixedId(1216).makePrimary();
    KeysetHandle handle = KeysetHandle.newBuilder().addEntry(entry).build();

    byte[] serializedHandle =
        TinkProtoKeysetFormat.serializeKeyset(handle, InsecureSecretKeyAccess.get());
    KeysetHandle parsedHandle =
        TinkProtoKeysetFormat.parseKeyset(serializedHandle, InsecureSecretKeyAccess.get());
    assertThat(parsedHandle.equalsKeyset(handle)).isTrue();
  }
Tests that the verifier can verify a newly generated signature for the message and key in the
test vector.
java_src/src/test/java/com/google/crypto/tink/signature/RsaSsaPssSignKeyManagerTest.java