/**
  * Stores the test songs in the database. Also some other song entities are persisted with no
  * current play count.
  */
 private void persistTestSongs() {
   jpaHelper.begin();
   SongEntity e = new SongEntity();
   e.setName("another Song");
   jpaHelper.persist(e, false);
   ArtistEntity artist = new ArtistEntity();
   artist.setName(ARTIST);
   AlbumEntity album = new AlbumEntity();
   album.setName(ALBUM);
   jpaHelper.persist(artist, false);
   jpaHelper.persist(album, false);
   for (int i = 1; i <= SONG_COUNT; i++) {
     SongEntity song = createTestSong(i);
     artist.addSong(song);
     album.addSong(song);
     jpaHelper.persist(song, false);
   }
   e = new SongEntity();
   e.setName("And still another song");
   jpaHelper.persist(e, false);
   jpaHelper.commit();
   jpaHelper.closeEM();
 }