@Test
public void testDeleteOwner() throws Exception {

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