@Test
public void testCopyPage() throws Exception {

	Page page = pageService.createPage(new Page("p1"));
	page = pageService.copyPage(page.getId(), new Page("p2"));
	List<Page> pages = getPages();
	assertEquals(2, pages.size());
	assertEquals("p2", pages.get(1).getName());
	assertEquals(page.getId(), pages.get(1).getId());
}