HashMap params = new HashMap();
params.put(
"config",
"/de/odysseus/calyxo/control/calyxo-control-config-empty.xml"
);
TestServletConfig config = new TestServletConfig("test", params);
ControlModuleMapping mapping = new ControlModuleMapping("/test/*");
ServletContext context = config.getServletContext();
ControlModuleGroup group = ControlModuleGroup.getInstance(context);
ControlModuleContext module = new ControlModuleContext(config, mapping, null);
assertTrue(group.isEmpty());
group.add(module);
assertFalse(group.isEmpty());