@Test
  public void parseParameters_outputPrefixIgnored_tink() throws Exception {
    AesCtrHmacStreamingParameters parameters =
        AesCtrHmacStreamingParameters.builder()
            .setKeySizeBytes(19)
            .setDerivedKeySizeBytes(16)
            .setHkdfHashType(AesCtrHmacStreamingParameters.HashType.SHA256)
            .setHmacHashType(AesCtrHmacStreamingParameters.HashType.SHA1)
            .setHmacTagSizeBytes(16)
            .setCiphertextSegmentSizeBytes(1024 * 1024)
            .build();

    ProtoParametersSerialization serialization =
        ProtoParametersSerialization.create(
            TYPE_URL,
            OutputPrefixType.TINK,
            com.google.crypto.tink.proto.AesCtrHmacStreamingKeyFormat.newBuilder()
                .setKeySize(19)
                .setParams(
                    com.google.crypto.tink.proto.AesCtrHmacStreamingParams.newBuilder()
                        .setCiphertextSegmentSize(1024 * 1024)
                        .setDerivedKeySize(16)
                        .setHkdfHashType(HashType.SHA256)
                        .setHmacParams(
                            HmacParams.newBuilder().setHash(HashType.SHA1).setTagSize(16)))
                .build());

    Parameters parsed = registry.parseParameters(serialization);
    assertThat(parsed).isEqualTo(parameters);
  }
Test that if "OutputPrefixType" is set to Tink, we just ignore it.
java_src/src/test/java/com/google/crypto/tink/streamingaead/internal/AesCtrHmacStreamingProtoSerializationTest.java