MockControl pagec = newControl(IPage.class);
IPage page = (IPage) pagec.getMock();
MockControl specc = newControl(IComponentSpecification.class);
IComponentSpecification spec = (IComponentSpecification) specc.getMock();
PropertyPersistenceStrategySource source = (PropertyPersistenceStrategySource) newMock(PropertyPersistenceStrategySource.class);
page.getSpecification();
pagec.setReturnValue(spec);
spec.getPropertySpecification("foobar");
specc.setReturnValue(null);
page.getExtendedId();
pagec.setReturnValue("TestPage");
page.getSpecification();
pagec.setReturnValue(spec);
spec.getSpecificationLocation();
specc.setReturnValue(r);
log.error(
"A property change event for property foobar of TestPage was observed, "
+ "but no such property is identified in the specification (" + r + ").",