@Test
public void testDeleteOwner() throws Exception {

	Playlist playlist = new Playlist("d1");
	playlist = playlistService.createPlaylist(playlist);
	playlist = playlistService.addOwners(playlist.getId(), new Owner[] { new Owner(new User("i1")) });
	playlist = playlistService.addOwners(playlist.getId(), new Owner[] { new Owner(new User("i2")) });
	assertEquals(3, getPlaylist(playlist.getId()).getOwners().size());
	playlistService.deleteOwner(playlist.getId(), playlist.getOwners().get(1).getId());
	assertEquals(2, getPlaylist(playlist.getId()).getOwners().size());
	assertEquals("i2", getPlaylist(playlist.getId()).getOwners().get(1).getUser().getUserId());
}