@Test
  public void parseParameters_dekOutputPrefixTink_isIgnored() throws Exception {
    LegacyKmsEnvelopeAeadParameters parameters =
        LegacyKmsEnvelopeAeadParameters.builder()
            .setKekUri("someEaxOtherKeyUri")
            .setDekParsingStrategy(
                LegacyKmsEnvelopeAeadParameters.DekParsingStrategy.ASSUME_XCHACHA20POLY1305)
            .setDekParametersForNewKeys(XChaCha20Poly1305Parameters.create())
            .build();

    ProtoParametersSerialization serialization =
        ProtoParametersSerialization.create(
            TYPE_URL,
            OutputPrefixType.RAW,
            KmsEnvelopeAeadKeyFormat.newBuilder()
                .setKekUri("someEaxOtherKeyUri")
                .setDekTemplate(
                    KeyTemplate.newBuilder()
                        .setTypeUrl("type.googleapis.com/google.crypto.tink.XChaCha20Poly1305Key")
                        .setOutputPrefixType(OutputPrefixType.TINK)
                        .build())
                .build());

    Parameters parsed = registry.parseParameters(serialization);
    assertThat(parsed).isEqualTo(parameters);
  }
Tests that when parsing, the OutputPrefixType of the template in DekKeyTemplate is ignored and
RAW is used instead.
java_src/src/test/java/com/google/crypto/tink/aead/LegacyKmsEnvelopeAeadProtoSerializationTest.java