### Question:
Entity { public TYPE getType() { return type; } 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 testGetType() { assertEquals(EntityType.FOO, this.fooEntity.getType()); assertEquals(EntityType.BAR, this.barEntity.getType()); }