assertThat(recording.getName(), is("The Sinner"));
}
@Test
public void getByArtistAndNameReturnsTwoRecordings() {
Artist artist = (Artist) session.load(Artist.class, 5);
String trackName = "Never Gonna Give You Up";
List<Recording> recordings = dao.getByArtistAndName(artist, trackName);
assertThat(recordings, hasSize(2));
for (Recording recording : recordings) {
assertThat(recording.getName(), is(trackName));