IComponentSpecification spec = newMock(IComponentSpecification.class);
IComponentEventInvoker invoker = newMock(IComponentEventInvoker.class);
IComponent comp = newComponent(spec, "comp1", "path/", "Home/");
ComponentEventProperty p = new ComponentEventProperty("comp1");
p.addListener(new String[] {"onClick"}, "testFoo", null, false, false, false, false);
Map compEvents = new HashMap();
compEvents.put("comp1", p);
expect(spec.getComponentEvents()).andReturn(compEvents);