assertThat(releases, hasSize(0));
}
@Test
public void getByArtistAndNameReturnsTwoReleases() {
Artist artist = (Artist) session.load(Artist.class, 4);
String releaseName = "The Warning";
List<Release> releases = dao.getByArtistAndName(artist, releaseName);
assertThat(releases, hasSize(2));
for (Release release : releases) {
assertThat(release.getName(), is(releaseName));