// Fill the target destination the page to be copied to.
copyPage.setTargetSpaceName(getTestClassName());
copyPage.setTargetPageName(copiedPageName);
CopyConfirmationPage copyConfirmationPage = copyPage.clickCopyButton();
Assert.assertTrue(copyConfirmationPage.getInfoMessage().contains(COPY_SUCCESSFUL));
viewPage = copyConfirmationPage.goToNewPage();
Assert.assertEquals(PAGE_TITLE, viewPage.getDocumentTitle());
Assert.assertEquals(PAGE_CONTENT, viewPage.getContent());
}
}