### Question:
Entity { public List<Diagram> getDiagrams() { return diagrams; } 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 testGetDiagrams() { assertEquals(diagrams, this.fooEntity.getDiagrams()); assertEquals(diagrams, this.barEntity.getDiagrams()); }