@Test
  public void testBuilder_deprecated_removeAt_works() throws Exception {
    KeysetHandle.Builder builder = KeysetHandle.newBuilder();
    builder.addEntry(
        KeysetHandle.generateEntryFromParametersName("AES256_CMAC")
            .withRandomId()
            .setStatus(KeyStatus.DISABLED));
    builder.addEntry(
        KeysetHandle.generateEntryFromParameters(
                AesCmacParameters.builder().setKeySizeBytes(32).setTagSizeBytes(13).build())
            .withRandomId()
            .makePrimary()
            .setStatus(KeyStatus.ENABLED));
    KeysetHandle.Builder.Entry removedEntry = builder.removeAt(0);
    assertThat(removedEntry.getStatus()).isEqualTo(KeyStatus.DISABLED);
    KeysetHandle handle = builder.build();
    assertThat(handle.size()).isEqualTo(1);
    assertThat(handle.getAt(0).getKey().getParameters())
        .isEqualTo(AesCmacParameters.builder().setKeySizeBytes(32).setTagSizeBytes(13).build());
  }
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