// attempt logoff
WaspSession waspSession = ((WaspSession) mock.getWicketSession());
assertNotSame(session, waspSession);
// instead of simulating a different jvm we can make sure the hashcode
// always stays the same
SecondaryLoginContext logoff = new SecondaryLoginContext();
assertEquals(22889663, logoff.hashCode());
assertTrue(waspSession.logoff(logoff));
mock.startPage(lastRendered);
mock.assertRenderedPage(application.getApplicationSettings().getAccessDeniedPage());
}