public void starredTracksAreOnlyRemovedIfPreviouslyDefinedAsLovedTrack() {
starDao.starTrack(user1, track1.getId());
starDao.starTrack(user1, track2.getId());
dao.createLovedTracks(asList(
new UserLovedTracks(USERNAME1, asList(track2)),
new UserLovedTracks(USERNAME2, asList(track2))));
List<Integer> starred1 = starDao.getStarredTrackIds(user1, 0, 10, null);
List<Integer> starred2 = starDao.getStarredTrackIds(user2, 0, 10, null);
assertEquals(asList(track2.getId(), track1.getId()), starred1);
assertEquals(asList(track2.getId()), starred2);
dao.createLovedTracks(asList(
new UserLovedTracks(USERNAME1, asList(track1)),
new UserLovedTracks(USERNAME2, asList(track2))));
starred1 = starDao.getStarredTrackIds(user1, 0, 10, null);
starred2 = starDao.getStarredTrackIds(user2, 0, 10, null);
assertEquals(asList(track1.getId()), starred1);