protected void loadBeanDefinitions(Class<?> testClass, BeanDefinitionRegistry registry) {
XmlBeanDefinitionReader xml = new XmlBeanDefinitionReader(registry);
String resourceName = testClass.getSimpleName() + ".xml";
Context ctxAnno = testClass.getAnnotation(Context.class);
if ( ctxAnno != null ) {
resourceName = ctxAnno.value();
}
URL xmlUrl = testClass.getResource(resourceName);
if ( xmlUrl != null ) {
xml.loadBeanDefinitions(new UrlResource(xmlUrl));
} else if ( ctxAnno != null) {