params.put(
"config",
"/de/odysseus/calyxo/control/calyxo-control-config.xml"
);
ServletContext context = new TestServletContext();
ControlModuleGroup group = ControlModuleGroup.getInstance(context);
DefaultModule module1 = createModule(context, "module1", "/module1/*", params);
DefaultModule module2 = createModule(context, "module2", "/module2/*", params);
group.add((ControlModuleContext)module1.getContext());
group.add((ControlModuleContext)module2.getContext());
TestRequest request = new TestRequest(new TestSession(context));
TestResponse response = new TestResponse();
module1.process(request, response, "/index");
assertEquals("/module1/index.jsp", request.getRecentRequestDispatchPath());