attachmentsPane.setFileToUpload(getClass().getResource("/image.gif").getPath());
attachmentsPane.waitForUploadToFinish("image.gif");
Assert.assertEquals("1.1", attachmentsPane.getLatestVersionOfAttachment("image.gif"));
// Click on Copy from the Page top menu.
CopyPage copyPage = viewPage.copy();
// Check form content
Assert.assertEquals(sourceSpaceName, copyPage.getSourceSpaceName());
Assert.assertEquals(sourcePageName, copyPage.getSourcePageName());
Assert.assertEquals(sourceSpaceName, copyPage.getTargetSpaceName());