@Test
  public void getPrimitive_works() throws Exception {
    AesSivKey key =
        AesSivKey.newBuilder()
            .setKeyValue(ByteString.copyFrom(Random.randBytes(64)))
            .setVersion(0)
            .build();
    KeyData keyData =
        KeyData.newBuilder()
            .setKeyMaterialType(KeyMaterialType.SYMMETRIC)
            .setTypeUrl(TYPE_URL)
            .setValue(key.toByteString())
            .build();

    DeterministicAead daead = Registry.getPrimitive(keyData, DeterministicAead.class);

    assertThat(daead).isNotNull();
    assertThat(daead).isInstanceOf(AesSiv.class);
  }
Type url that this manager supports.
java_src/src/test/java/com/google/crypto/tink/daead/internal/testing/LegacyAesSivTestKeyManagerTest.java