@Test
  public void test_parseParametersWithLegacyFallback_testRegisteredButFaulty_throws()
      throws Exception {
    MutableSerializationRegistry registry = new MutableSerializationRegistry();
    registry.registerParametersParser(
        ParametersParser.create(
            MutableSerializationRegistryTest::parseParametersAlwaysThrows,
            Util.toBytesFromPrintableAscii("typeUrlForTesting98178"),
            ProtoParametersSerialization.class));
    ProtoParametersSerialization protoParameters =
        ProtoParametersSerialization.create(
            "typeUrlForTesting98178", OutputPrefixType.TINK, TestProto.getDefaultInstance());
    assertThrows(
        GeneralSecurityException.class,
        () -> registry.parseParametersWithLegacyFallback(protoParameters));
  }
Tests for {@link MutableSerializationRegistry}.

<p>We repeat the main tests in SerializationRegistryTest. There really shouldn't be both classes,
but currently this is what we need, and the other is what we should have.
java_src/src/test/java/com/google/crypto/tink/internal/MutableSerializationRegistryTest.java