Schema beansSchema = names.get("www.springframework.org/schema/beans/spring-beans-2.5.xsd");
resource = assertSourceInfoAndGetResource(beansSchema, SpringPluggableSchemaSourceInfo.class);
assertResource("org/springframework/beans/factory/xml/spring-beans-2.5.xsd", resource);
SpringSchemasSourceInfo parent = ((SpringPluggableSchemaSourceInfo) beansSchema).getParent();
resource = assertSourceInfoAndGetResource(parent, SpringSchemasSourceInfo.class);
assertNull(parent.getParent());
assertTrue(resource.getURL().toExternalForm().endsWith("META-INF/spring.schemas"));
String content = StreamUtil.readText(resource.getInputStream(), "UTF-8", true);
assertTrue(content.contains("org/springframework/beans/factory/xml/spring-beans-2.5.xsd"));
}