copyOverwritePrompt = copyPage.clickCopyButtonExpectingOverwritePrompt();
CopyConfirmationPage copyConfirmationPage = copyOverwritePrompt.clickCopyButton();
// Check successful copy confirmation
Assert.assertTrue(copyConfirmationPage.getInfoMessage().contains(COPY_SUCCESSFUL));
viewPage = copyConfirmationPage.goToNewPage();
// Verify that the copied title is modified to be the new page name since it was set to be the page name
// originally.
Assert.assertEquals(targetPageName, viewPage.getDocumentTitle());
Assert.assertEquals(PAGE_CONTENT, viewPage.getContent());