public void testMonitoredCall(){
BasicConfigurator.configure();
System.setProperty("JUNITTEST", "" + Boolean.TRUE);
ApplicationContext context = new ClassPathXmlApplicationContext(
new String[] {"services-aop.xml"});
AService service = (AService)context.getBean("AService");
assertEquals(2*100, service.echoMethodA(100));
//check that the call is traced
IProducerRegistryAPI registryAPI = new ProducerRegistryAPIFactory().createProducerRegistryAPI();
IStatsProducer<ServiceStats> producerB = registryAPI.getProducer("BServiceImpl");
assertEquals(1, producerB.getStats().get(0).getTotalRequests());