test_class.file: shardingsphere-jdbc/shardingsphere-jdbc-spring/shardingsphere-jdbc-spring-infra/shardingsphere-jdbc-spring-namespace-infra/src/test/java/org/apache/shardingsphere/spring/namespace/registry/ShardingSphereAlgorithmBeanRegistryTest.java
test_class.identifier: ShardingSphereAlgorithmBeanRegistryTest
test_case.body: @Test
      public void assertGetAlgorithmBeanReferences() {
          ParserContext parserContext = mock(ParserContext.class, RETURNS_DEEP_STUBS);
          when(parserContext.getRegistry().getBeanDefinitionNames()).thenReturn(new String[] {"includeBean", "excludeBean"});
          when(parserContext.getRegistry().getBeanDefinition("includeBean").getBeanClassName()).thenReturn(ShardingSphereAlgorithmFixtureFactoryBean.class.getName());
          when(parserContext.getRegistry().getBeanDefinition("excludeBean").getBeanClassName()).thenReturn(Object.class.getName());
          Map<String, RuntimeBeanReference> actual = ShardingSphereAlgorithmBeanRegistry.getAlgorithmBeanReferences(parserContext, ShardingSphereAlgorithmFixtureFactoryBean.class);
          assertThat(actual.size(), is(1));
          assertThat(actual.get("includeBean").getBeanName(), is("includeBean"));
      }
test_case.class_method_signature: ShardingSphereAlgorithmBeanRegistryTest.assertGetAlgorithmBeanReferences()
test_case.full_signature: @Test public void assertGetAlgorithmBeanReferences()
test_case.identifier: assertGetAlgorithmBeanReferences
test_case.invocations: mock thenReturn when getBeanDefinitionNames getRegistry thenReturn when getBeanClassName getBeanDefinition getRegistry getName thenReturn when getBeanClassName getBeanDefinition getRegistry getName getAlgorithmBeanReferences assertThat size is assertThat getBeanName get is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetAlgorithmBeanReferences()
focal_class.file: shardingsphere-jdbc/shardingsphere-jdbc-spring/shardingsphere-jdbc-spring-infra/shardingsphere-jdbc-spring-namespace-infra/src/main/java/org/apache/shardingsphere/spring/namespace/registry/ShardingSphereAlgorithmBeanRegistry.java
focal_class.identifier: ShardingSphereAlgorithmBeanRegistry
focal_class.class_method_signature: ShardingSphereAlgorithmBeanRegistry.getAlgorithmBeanReferences(final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass)
focal_class.full_signature: public static Map<String, RuntimeBeanReference> getAlgorithmBeanReferences(final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass)
focal_class.identifier: getAlgorithmBeanReferences
focal_class.modifiers: public static
focal_class.parameters: (final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass)
focal_class.return: Map<String, RuntimeBeanReference>
focal_class.signature: Map<String, RuntimeBeanReference> getAlgorithmBeanReferences(final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass)
focal_method.body: public static Map<String, RuntimeBeanReference> getAlgorithmBeanReferences(final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass) {
          String[] beanDefinitionNames = parserContext.getRegistry().getBeanDefinitionNames();
          String algorithmFactoryBeanClassName = algorithmFactoryBeanClass.getName();
          Map<String, RuntimeBeanReference> result = new ManagedMap<>(beanDefinitionNames.length);
          for (String each : beanDefinitionNames) {
              if (parserContext.getRegistry().getBeanDefinition(each).getBeanClassName().equals(algorithmFactoryBeanClassName)) {
                  result.put(each, new RuntimeBeanReference(each));
              }
          }
          return result;
      }
focal_method.class_method_signature: ShardingSphereAlgorithmBeanRegistry.getAlgorithmBeanReferences(final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass)
focal_method.full_signature: public static Map<String, RuntimeBeanReference> getAlgorithmBeanReferences(final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass)
focal_method.identifier: getAlgorithmBeanReferences
focal_method.invocations: getBeanDefinitionNames getRegistry getName equals getBeanClassName getBeanDefinition getRegistry put
focal_method.modifiers: public static
focal_method.parameters: (final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass)
focal_method.return: Map<String, RuntimeBeanReference>
focal_method.signature: Map<String, RuntimeBeanReference> getAlgorithmBeanReferences(final ParserContext parserContext, 
                                                                                 final Class<? extends ShardingSphereAlgorithmFactoryBean<?>> algorithmFactoryBeanClass)