### Question:
LogoutPage extends WebPage { protected void logout() { SecurityUtils.getSubject().logout(); ShiroWicketPlugin.get().onLoggedOut(); } LogoutPage(PageParameters params);   }### Answer:
@Test public void testLogoutAndRedirectToHomeWithFeedback() throws Exception { this.tester.startPage(LogoutPage.class); verify(this.mockSubject).logout(); this.tester.assertRenderedPage(this.tester.getApplication().getHomePage()); Assert.assertEquals(1, this.tester.getMessages(FeedbackMessage.INFO).size()); }