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);
assertSame(songs, artist.getComposed());
artist.remove();
assertTrue("CMR collection is not empty " + System.identityHashCode(songs), songs.isEmpty());
for (SongLocal songLocal : bsCopies) {
assertNull(songLocal.getComposer());
}
} finally {