checkLine(spec, 22);
IContainedComponent c = spec.getComponent("c");
checkLine(c, 24);
IListenerBindingSpecification lbs = (ListenerBindingSpecification) c.getBinding("listener");
checkLine(lbs, 25);
String expectedScript = buildExpectedScript(new String[]
{ "if page.isFormInputValid():", " cycle.page = \"Results\"", "else:",
" page.message = \"Please fix errors before continuing.\";" });
assertEquals("jython", lbs.getLanguage());
assertEquals(expectedScript, lbs.getScript());
}