public void testUnknownStategy()
{
Location l = fabricateLocation(12);
Throwable inner = new ApplicationRuntimeException("Simulated error.");
ErrorLog log = newLog();
IRequestCycle cycle = newCycle();
MockControl sourcec = newControl(PropertyPersistenceStrategySource.class);
PropertyPersistenceStrategySource source = (PropertyPersistenceStrategySource) sourcec
.getMock();
MockControl componentc = newControl(IComponent.class);
IComponent component = (IComponent) componentc.getMock();
MockControl specc = newControl(IComponentSpecification.class);
IComponentSpecification spec = (IComponentSpecification) specc.getMock();
MockControl psc = newControl(IPropertySpecification.class);
IPropertySpecification ps = (IPropertySpecification) psc.getMock();
component.getSpecification();
componentc.setReturnValue(spec);
spec.getPropertySpecification("zip");
specc.setReturnValue(ps);
ps.getPersistence();
psc.setReturnValue("unknown");
source.getStrategy("unknown");
sourcec.setThrowable(inner);
ps.getLocation();
psc.setReturnValue(l);
log.error("Simulated error.", l, inner);
replayControls();
PageRecorderImpl pr = new PageRecorderImpl("SomePage", cycle, source, log);