xmlFile.setLastModified(xmlFile.lastModified()+2000);
// wait for the listener to unlock when
// service 2 triggers a load event
synchronized (listener) {
listener.wait();
}
// here comes the magic !!!
assertTrue(service2.getUserGroups().size()==1);
assertTrue(service2.getGroupCount()==1);