@Test public void getTopTracks() throws ApplicationException { int artistId = prepareTestdataForArtist(); List<Integer> ts = playlistGeneratorDao.getTopTracksForArtist(artistId, 20); Assert.assertNotNull(ts); Assert.assertEquals(20, ts.size()); }