@Test
public void components() throws Exception {
assertArrayEquals(new String[] { "a", "b" }, components.getComponentNames());
WebxComponent a = components.getComponent("a");
WebxComponent b = components.getComponent("b");
Method m = getAccessibleMethod(a.getApplicationContext().getClass(), "getConfigLocations", null);
assertArrayEquals(new String[] { "classpath:META-INF/mycomponent/a.xml" },
String[].class.cast(m.invoke(a.getApplicationContext())));
assertArrayEquals(new String[] { "classpath:META-INF/mycomponent/b.xml" },
String[].class.cast(m.invoke(b.getApplicationContext())));
assertEquals("hello", a.getApplicationContext().getBean("s1"));
assertEquals("world", b.getApplicationContext().getBean("s2"));
}