test_class.file: micro-core/src/test/java/com/oath/micro/server/spring/SpringContextFactoryTest.java
test_class.identifier: SpringContextFactoryTest
test_case.body: @Test
  	public void blacklisting() {
  						
  		SpringBuilder springBuilder = mock(SpringBuilder.class);
  		
  		Set<Class<?>> classes = new HashSet<>();
  		classes.add(Integer.class);
  		classes.add(String.class);
  		Config config = Config.instance().withBasePackages(new String[] {"com.aol.micro.server.spring"}).set();
  		new SpringContextFactory(config ,this.getClass(), classes).withSpringBuilder(springBuilder).createSpringContext();
  	    ArgumentCaptor<Class> varArgs = ArgumentCaptor.forClass(Class.class);
  		verify(springBuilder).createSpringApp(anyObject(), varArgs.capture());
  		Assert.assertTrue(varArgs.getAllValues().contains(String.class));
  		Assert.assertFalse(varArgs.getAllValues().contains(Integer.class));
  
  	}
test_case.class_method_signature: SpringContextFactoryTest.blacklisting()
test_case.full_signature: @Test public void blacklisting()
test_case.identifier: blacklisting
test_case.invocations: mock add add set withBasePackages instance createSpringContext withSpringBuilder getClass forClass createSpringApp verify anyObject capture assertTrue contains getAllValues assertFalse contains getAllValues
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void blacklisting()
focal_class.declarator: logger = LoggerFactory.getLogger(this.getClass())
focal_class.modifier: private final
focal_class.original_string: private final Logger logger = LoggerFactory.getLogger(this.getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: classes
focal_class.modifier: private final
focal_class.original_string: private final PersistentSet<Class> classes;
focal_class.type: PersistentSet<Class>
focal_class.var_name: classes
focal_class.declarator: config
focal_class.modifier: private final
focal_class.original_string: private final Config config;
focal_class.type: Config
focal_class.var_name: config
focal_class.declarator: springBuilder
focal_class.modifier: @Wither
      private final
focal_class.original_string: @Wither
      private final SpringBuilder springBuilder;
focal_class.type: SpringBuilder
focal_class.var_name: springBuilder
focal_class.file: micro-core/src/main/java/com/oath/micro/server/spring/SpringContextFactory.java
focal_class.identifier: SpringContextFactory
focal_class.class_method_signature: SpringContextFactory.SpringContextFactory(Config config, Class<?> c, Set<Class<?>> classes)
focal_class.full_signature: public  SpringContextFactory(Config config, Class<?> c, Set<Class<?>> classes)
focal_class.identifier: SpringContextFactory
focal_class.modifiers: public
focal_class.parameters: (Config config, Class<?> c, Set<Class<?>> classes)
focal_class.signature:  SpringContextFactory(Config config, Class<?> c, Set<Class<?>> classes)
focal_class.class_method_signature: SpringContextFactory.SpringContextFactory(SpringBuilder builder, Config config, Class<?> c, Set<Class<?>> classes)
focal_class.full_signature: public  SpringContextFactory(SpringBuilder builder, Config config, Class<?> c, Set<Class<?>> classes)
focal_class.identifier: SpringContextFactory
focal_class.modifiers: public
focal_class.parameters: (SpringBuilder builder, Config config, Class<?> c, Set<Class<?>> classes)
focal_class.signature:  SpringContextFactory(SpringBuilder builder, Config config, Class<?> c, Set<Class<?>> classes)
focal_class.class_method_signature: SpringContextFactory.createSpringContext()
focal_class.full_signature: public ApplicationContext createSpringContext()
focal_class.identifier: createSpringContext
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ApplicationContext
focal_class.signature: ApplicationContext createSpringContext()
focal_class.class_method_signature: SpringContextFactory.classes()
focal_class.full_signature: public Class[] classes()
focal_class.identifier: classes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Class[]
focal_class.signature: Class[] classes()
focal_method.body: public ApplicationContext createSpringContext() {
          try {
              ApplicationContext springContext = springBuilder.createSpringApp(config, classes.stream().toArray(i->new Class[classes.size()]));
              return springContext;
          } catch (Exception e) {
              logger.error(InternalErrorCode.STARTUP_FAILED_SPRING_INITIALISATION.toString(), e.getMessage());
              ExceptionSoftener.throwSoftenedException(e);
          }
          return null;
      }
focal_method.class_method_signature: SpringContextFactory.createSpringContext()
focal_method.full_signature: public ApplicationContext createSpringContext()
focal_method.identifier: createSpringContext
focal_method.invocations: createSpringApp toArray stream size error toString getMessage throwSoftenedException
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: ApplicationContext
focal_method.signature: ApplicationContext createSpringContext()