### Question:
XmlBeanDefinitionReader extends AbstractBeanDefinitionReader { @Override public void loadBeanDefinitions(String location) throws Exception { InputStream inputStream = getResourceLoader().getResource(location).getInputStream(); doLoadBeanDefinitions(inputStream); } XmlBeanDefinitionReader(ResourceLoader resourceLoader); @Override void loadBeanDefinitions(String location);  }### Answer:
@Test public void loadBeanDefinitions() throws Exception { XmlBeanDefinitionReader xmlBeanDefinitionReader = new XmlBeanDefinitionReader(new ResourceLoader()); xmlBeanDefinitionReader.loadBeanDefinitions("tinyioc.xml"); Map<String, BeanDefinition> registry = xmlBeanDefinitionReader.getRegistry(); Assert.assertTrue(registry.size() >0); }