### Question:
MusicRepository { @Transactional public List<String> getMatchingArtistNames(String prefix) { String selectSQL = "SELECT name FROM artists WHERE " + "lower(name) like lower(?) " + "order by name asc"; return jdbcTemplate.query( selectSQL, new Object[]{prefix + "%"}, (rs, rowNum) -> rs.getString("name")); } MusicRepository(JdbcTemplate template); @Transactional List<Song> getSongsForArtist(String artistName); @Transactional List<String> getMatchingSongNamesForArtist(
            String artistName,
            String prefix
    ); @Transactional List<String> getMatchingArtistNames(String prefix); @Transactional Song getSong(String artistName, String name); @Transactional Song voteForSong(String artistName, String name);  }### Answer:
@Test void testMatchingArtistNames() { List<String> names = musicRepository.getMatchingArtistNames("Th"); assertEquals(names.size(), 2); assertEquals(names.get(0), "Therapy Zeppelin"); assertEquals(names.get(1), "Threadbare Loaf"); }