assertNotNull(context.containsBeanDefinition("featureService"));
BeanDefinition beanDefinition = context.getBeanDefinition("featureService");
assertEquals("featureServiceFactory", beanDefinition.getFactoryBeanName());
assertEquals("createFeatureService", beanDefinition.getFactoryMethodName());
FeatureService featureService = context.getBean("featureService", FeatureService.class);
assertNotNull(featureService);
}