### Question:
Entity { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("title : \"").append(title).append("\""); sb.append(", "); sb.append("type : \"").append(type).append("\""); sb.append(", "); sb.append("diagrams : \"").append(diagrams).append("\""); sb.append("}"); return sb.toString(); } Entity(final String title, final TYPE type, final List<Diagram> diagrams); @Override String toString(); String getTitle(); TYPE getType(); List<Diagram> getDiagrams();  }### Answer:
@Test public void testToString() { assertNotNull(this.fooEntity.toString()); assertNotNull(this.barEntity.toString()); }