### Question:
DefaultListableBeanFactory extends AbstractBeanFactory implements BeanDefinitionRegistry, ResourceLoaderBeanFactory ,ListableBeanFactory { @Override public void removeBeanDefinition(String beanName) { if (beanDefinitionMap.get(beanName) != null) { beanDefinitionMap.remove(beanName); } else { logger.warn("[Tiny-Spring] Remove BeanDefinition By Name -{} not Find BeanDefinition.", beanName); } } DefaultListableBeanFactory(Resource resource);  DefaultListableBeanFactory(String location); @Override void registerBeanDefinition(String beanName, BeanDefinition beanDefinition); @Override void removeBeanDefinition(String beanName); @Override Resource getResource(String location); @Override BeanDefinition getBeanDefinition(String beanDefinitionName); @Override boolean containsBeanDefintion(String beanDefinitionName); @Override ClassLoader getClassLoader();  }### Answer:
@Test public void testRemoveBeanDefinition() throws Exception { defaultListableBeanFactory.removeBeanDefinition("beana"); BeanA a = defaultListableBeanFactory.getBean("beana", BeanA.class); log.info("beanDefinition已经被移除：" + (a == null)); }