@Test
public void testAddOwners() throws Exception {

	Page page = new Page("p1");
	page = pageService.createPage(page);
	assertEquals(1, pageService.getPage(page.getId()).getOwners().size());
	pageService.addOwners(page.getId(), new Owner[] { new Owner(new User("i1")) });
	assertEquals(2, pageService.getPage(page.getId()).getOwners().size());
	List<Owner> owners = pageService.getPage(page.getId()).getOwners();
	assertEquals("i1", owners.get(1).getUser().getUserId());
	pageService.addOwners(page.getId(), new Owner[] { new Owner(new User("i2")) });
	assertEquals(3, pageService.getPage(page.getId()).getOwners().size());
}