@Test
public void testInlineEditCanChangeTitle()
{
String title = RandomStringUtils.randomAlphanumeric(4);
getUtil().gotoPage(getTestClassName(), getTestMethodName(), "edit", "editor=inline&title=" + title);
InlinePage inlinePage = new InlinePage();
// Check if the title specified on the request is properly displayed.
Assert.assertEquals(title, inlinePage.getDocumentTitle());
// Check if the title specified on the request is displayed in the document hierarchy.
Assert.assertTrue(inlinePage.getBreadcrumbContent().contains(title));
// Save the document and check again the displayed title
ViewPage viewPage = inlinePage.clickSaveAndView();
Assert.assertEquals(title, viewPage.getDocumentTitle());
}