}
@Test
public void testDeleteOkWhenConfirming()
{
ConfirmationPage confirmationPage = this.viewPage.delete();
// This tests for regression of XWIKI-1388
Assert.assertNotNull("The interface should not show the user as logged out while deleting page",
confirmationPage.getCurrentUser());
confirmationPage.clickYes();
DeletePageOutcomePage deleteOutcome = new DeletePageOutcomePage();
Assert.assertEquals(LOGGED_USERNAME, deleteOutcome.getPageDeleter());
Assert.assertEquals(CONFIRMATION, deleteOutcome.getMessage());
}