worker.setComponentScript(compScript);
worker.setEventEngine(engine);
worker.setScriptSource(scriptSource);
IDirectEvent component = newMock(IDirectEvent.class);
IComponentSpecification spec = new ComponentSpecification();
IComponent comp1 = newMock(IComponent.class);
IComponentSpecification comp1Spec = new ComponentSpecification();
IComponent comp2 = newMock(IComponent.class);
IComponentSpecification comp2Spec = new ComponentSpecification();
IForm form = newMock(IForm.class);
IComponentSpecification formSpec = new ComponentSpecification();
// now test render
spec.addEventListener("comp1", new String[] {"onclick"}, "testMethod", "form1", false, true, false, false);
invoker.addEventListener("comp1", spec);
invoker.addFormEventListener("form1", spec);