spec.addEventListener("comp1", new String[] {"onClick"}, "testFoo", "form", false, true, false, false);
spec.addEventListener("comp1", new String[] {"onClick"}, "testBar", "form", false, true, false, false);
assert spec.getComponentEvents("comp1") != null;
ComponentEventProperty p = spec.getComponentEvents("comp1");
// should be only form events bound
assertEquals(p.getEvents().size(), 0);
assertEquals(p.getEventListeners("onClick").size(), 0);
assertEquals(p.getComponentId(), "comp1");
assertEquals(p.getFormEventListeners("onClick").size(), 2);
assertEquals(p.getFormEvents().size(), 1);
}