@Test
public void testDeleteOwner() throws Exception {

	Screen screen = new Screen("s1");
	screen = screenService.createScreen(screen);
	screen = screenService.addOwners(screen.getId(), new Owner[] { new Owner(new User("i1")) });
	screen = screenService.addOwners(screen.getId(), new Owner[] { new Owner(new User("i2")) });
	assertEquals(3, screenService.getScreen(screen.getId(), true, false).getOwners().size());
	screenService.deleteOwner(screen.getId(), screen.getOwners().get(1).getId());
	assertEquals(2, screenService.getScreen(screen.getId(), true, false).getOwners().size());
	assertEquals("i2",
			screenService.getScreen(screen.getId(), true, false).getOwners().get(1).getUser().getUserId());
}