### Question:
PlaylistEntity extends Item { @Override public String toString() { StringBuilder stringbuilder = new StringBuilder(); if (getName() != null) { if (this.playlistCreator != null) { return stringbuilder.append(getName()).append(" created by: ").append(this.playlistCreator).toString(); } return stringbuilder.append(getName()).toString(); } return "No playlist data available"; }  String getPlaylistCreator(); void setPlaylistCreator(String playlistCreator); @Override String toString();  }### Answer:
@Test void testToStringEmpty() { this.playlist = new PlaylistEntity(); assertThat(this.playlist.toString(), equalTo("No playlist data available")); }