@Test
  public void getPrimitive_wrongType_linksToDevsite() throws Exception {
    KeysetHandle handle = KeysetHandle.generateNew(PredefinedAeadParameters.AES128_EAX);
    GeneralSecurityException ex =
        assertThrows(GeneralSecurityException.class, () -> handle.getPrimitive(Mac.class));
    assertThat(ex)
        .hasMessageThat()
        .contains("https://developers.google.com/tink/faq/registration_errors");
  }
Tests that key parsing via the serialization registry works as expected.

<p>NOTE: This adds a parser to the MutableSerializationRegistry, which no other test uses.
java_src/src/test/java/com/google/crypto/tink/KeysetHandleTest.java