public void test11_Delete() throws Exception {
resetDB();
beginTransaction();
try {
ArtistLocal artist = findArtist(1);
artist.setPerformed(new HashSet<SongLocal>());
Set<SongLocal> songs = artist.getComposed();
Set<SongLocal> bsCopies = new HashSet<SongLocal>(songs);
assertFalse(songs.isEmpty());
artist.remove();
assertTrue(songs.isEmpty());
for (SongLocal songLocal : bsCopies) {
assertNull(songLocal.getComposer());
}
} finally {