public void testComplex() throws Exception
{
Registry r = buildFrameworkRegistry("ComplexModule.xml");
SimpleService s =
(SimpleService) r.getService("hivemind.test.services.Simple", SimpleService.class);
CountFactory.reset();
assertEquals(
"<SingletonProxy for hivemind.test.services.Simple(hivemind.test.services.SimpleService)>",
s.toString());
assertEquals(7, s.add(4, 3));
assertEquals(1, CountFactory.getCount());
assertEquals(19, s.add(11, 8));
assertEquals(2, CountFactory.getCount());
}