test_class.file: java_src/src/test/java/com/google/crypto/tink/config/TinkConfigTest.java
test_class.identifier: TinkConfigTest
test_case.body: @Test
    public void aaaTestInitialization() throws Exception {
      try {
        Registry.getCatalogue("tinkmac");
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("no catalogue found");
        assertThat(e.toString()).contains("MacConfig.register()");
      }
      try {
        Registry.getCatalogue("tinkaead");
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("no catalogue found");
        assertThat(e.toString()).contains("AeadConfig.register()");
      }
      try {
        Registry.getCatalogue("tinkhybriddecrypt");
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("no catalogue found");
        assertThat(e.toString()).contains("HybridConfig.register()");
      }
      try {
        Registry.getCatalogue("tinkhybridencrypt");
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("no catalogue found");
        assertThat(e.toString()).contains("HybridConfig.register()");
      }
      try {
        Registry.getCatalogue("tinkpublickeysign");
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("no catalogue found");
        assertThat(e.toString()).contains("SignatureConfig.register()");
      }
      try {
        Registry.getCatalogue("tinkpublickeyverify");
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("no catalogue found");
        assertThat(e.toString()).contains("SignatureConfig.register()");
      }
  
      String macTypeUrl = "type.googleapis.com/google.crypto.tink.HmacKey";
      String aeadTypeUrl = "type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey";
      String daeadTypeUrl = "type.googleapis.com/google.crypto.tink.AesSivKey";
      String hybridTypeUrl = "type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey";
      String signTypeUrl = "type.googleapis.com/google.crypto.tink.EcdsaPrivateKey";
      String streamingAeadTypeUrl = "type.googleapis.com/google.crypto.tink.AesCtrHmacStreamingKey";
      try {
        Registry.getUntypedKeyManager(macTypeUrl);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("No key manager found");
      }
      try {
        Registry.getUntypedKeyManager(aeadTypeUrl);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("No key manager found");
      }
      try {
        Registry.getUntypedKeyManager(daeadTypeUrl);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("No key manager found");
      }
      try {
        Registry.getUntypedKeyManager(hybridTypeUrl);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("No key manager found");
      }
      try {
        Registry.getUntypedKeyManager(signTypeUrl);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("No key manager found");
      }
      try {
        Registry.getUntypedKeyManager(streamingAeadTypeUrl);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertThat(e.toString()).contains("No key manager found");
      }
  
      // Initialize the config.
      TinkConfig.register();
  
      // After registration the key managers should be present.
      Config.register(TinkConfig.TINK_1_1_0);
      Registry.getUntypedKeyManager(macTypeUrl);
      Registry.getUntypedKeyManager(aeadTypeUrl);
      Registry.getUntypedKeyManager(daeadTypeUrl);
      Registry.getUntypedKeyManager(hybridTypeUrl);
      Registry.getUntypedKeyManager(signTypeUrl);
      Registry.getUntypedKeyManager(streamingAeadTypeUrl);
    }
test_case.class_method_signature: TinkConfigTest.aaaTestInitialization()
test_case.full_signature: @Test public void aaaTestInitialization()
test_case.identifier: aaaTestInitialization
test_case.invocations: getCatalogue fail contains assertThat toString contains assertThat toString getCatalogue fail contains assertThat toString contains assertThat toString getCatalogue fail contains assertThat toString contains assertThat toString getCatalogue fail contains assertThat toString contains assertThat toString getCatalogue fail contains assertThat toString contains assertThat toString getCatalogue fail contains assertThat toString contains assertThat toString getUntypedKeyManager fail contains assertThat toString getUntypedKeyManager fail contains assertThat toString getUntypedKeyManager fail contains assertThat toString getUntypedKeyManager fail contains assertThat toString getUntypedKeyManager fail contains assertThat toString getUntypedKeyManager fail contains assertThat toString register register getUntypedKeyManager getUntypedKeyManager getUntypedKeyManager getUntypedKeyManager getUntypedKeyManager getUntypedKeyManager
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void aaaTestInitialization()
focal_class.declarator: TINK_1_0_0 =
        RegistryConfig.newBuilder()
            .mergeFrom(
                HybridConfig.TINK_1_0_0) // include AeadConfig.TINK_1_0_0 and MacConfig.TINK_1_0_0
            .mergeFrom(SignatureConfig.TINK_1_0_0)
            .setConfigName("TINK_1_0_0")
            .build()
focal_class.modifier: @Deprecated
    public static final
focal_class.original_string: @Deprecated
    public static final RegistryConfig TINK_1_0_0 =
        RegistryConfig.newBuilder()
            .mergeFrom(
                HybridConfig.TINK_1_0_0) // include AeadConfig.TINK_1_0_0 and MacConfig.TINK_1_0_0
            .mergeFrom(SignatureConfig.TINK_1_0_0)
            .setConfigName("TINK_1_0_0")
            .build();
focal_class.type: RegistryConfig
focal_class.var_name: TINK_1_0_0
focal_class.declarator: TINK_1_1_0 =
        RegistryConfig.newBuilder()
            .mergeFrom(
                HybridConfig.TINK_1_1_0) // include AeadConfig.TINK_1_0_0 and MacConfig.TINK_1_0_0
            .mergeFrom(SignatureConfig.TINK_1_1_0)
            .mergeFrom(DeterministicAeadConfig.TINK_1_1_0)
            .mergeFrom(StreamingAeadConfig.TINK_1_1_0)
            .setConfigName("TINK_1_1_0")
            .build()
focal_class.modifier: @Deprecated
    public static final
focal_class.original_string: @Deprecated
    public static final RegistryConfig TINK_1_1_0 =
        RegistryConfig.newBuilder()
            .mergeFrom(
                HybridConfig.TINK_1_1_0) // include AeadConfig.TINK_1_0_0 and MacConfig.TINK_1_0_0
            .mergeFrom(SignatureConfig.TINK_1_1_0)
            .mergeFrom(DeterministicAeadConfig.TINK_1_1_0)
            .mergeFrom(StreamingAeadConfig.TINK_1_1_0)
            .setConfigName("TINK_1_1_0")
            .build();
focal_class.type: RegistryConfig
focal_class.var_name: TINK_1_1_0
focal_class.declarator: LATEST =
        RegistryConfig.newBuilder()
            .mergeFrom(HybridConfig.LATEST) // include AeadConfig.LATEST and MacConfig.LATEST
            .mergeFrom(SignatureConfig.LATEST)
            .mergeFrom(DeterministicAeadConfig.LATEST)
            .mergeFrom(StreamingAeadConfig.LATEST)
            .setConfigName("TINK")
            .build()
focal_class.modifier: @Deprecated
    public static final
focal_class.original_string: @Deprecated
    public static final RegistryConfig LATEST =
        RegistryConfig.newBuilder()
            .mergeFrom(HybridConfig.LATEST) // include AeadConfig.LATEST and MacConfig.LATEST
            .mergeFrom(SignatureConfig.LATEST)
            .mergeFrom(DeterministicAeadConfig.LATEST)
            .mergeFrom(StreamingAeadConfig.LATEST)
            .setConfigName("TINK")
            .build();
focal_class.type: RegistryConfig
focal_class.var_name: LATEST
focal_class.file: java_src/src/main/java/com/google/crypto/tink/config/TinkConfig.java
focal_class.identifier: TinkConfig
focal_class.class_method_signature: TinkConfig.init()
focal_class.full_signature: @Deprecated public static void init()
focal_class.identifier: init
focal_class.modifiers: @Deprecated public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: TinkConfig.register()
focal_class.full_signature: public static void register()
focal_class.identifier: register
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void register()
focal_method.body: public static void register() throws GeneralSecurityException {
      DeterministicAeadConfig.register();
      HybridConfig.register(); // includes Aead and Mac
      PrfConfig.register();
      SignatureConfig.register();
      StreamingAeadConfig.register();
    }
focal_method.class_method_signature: TinkConfig.register()
focal_method.full_signature: public static void register()
focal_method.identifier: register
focal_method.invocations: register register register register register
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void register()