@Test
public void testAddOwners() throws Exception {

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