public void testListenerBinding() throws Exception
{
Log log = (Log) newMock(Log.class);
SpecificationParser parser = new SpecificationParser(new DefaultErrorHandler(), log,
new DefaultClassResolver(), new SpecFactory());
parser.setBindingSource(newBindingSource());
Resource location = getSpecificationResourceLocation("ListenerBinding.page");
log
.warn("The <listener-binding> element is no longer supported (at classpath:/org/apache/tapestry/junit/parse/ListenerBinding.page, line 25, column 56).");
replayControls();
IComponentSpecification spec = parser.parsePageSpecification(location);
verifyControls();
IContainedComponent cc = spec.getComponent("c");