### Question:
AlbumEntity extends Item { @Override public String toString() { if (this.artists != null && getName() != null) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder = stringBuilder.append(getName()).append(" from: "); for (String name : this.artists) { stringBuilder = stringBuilder.append(name).append(", "); } return stringBuilder.toString(); } return "No album data is available"; }  String[] getArtists(); void setArtists(String[] artists); @Override String toString();  }### Answer:
@Test void testToString() { assertThat(this.album.toString(), equalTo(NAME + " from: Dieter, Hans, ")); this.album = new AlbumEntity(); assertThat(this.album.toString(), equalTo("No album data is available")); }