}
public void testLoggedIn()
{
IRequestCycle cycle = newCycle();
IErrorProperty page = newPage();
ApplicationStateManager manager = newApplicationStateManager();
Visit visit = newVisit();
manager.exists("visit");
setReturnValue(manager, true);
manager.get("visit");
setReturnValue(manager, visit);
visit.isUserLoggedIn();
setReturnValue(visit, true);
trainGetPage(cycle, "MyLibrary", page);
page.setError("An error.");
cycle.activate(page);
replayControls();