public void testLoggedIn()
{
IRequestCycle cycle = newCycle();
IErrorProperty page = newPage();
ApplicationStateManager manager = newApplicationStateManager();
Visit visit = newVisit();
expect(manager.exists("visit")).andReturn(true);
expect(manager.get("visit")).andReturn(visit);
expect(visit.isUserLoggedIn()).andReturn(true);
trainGetPage(cycle, "MyLibrary", page);