### Question:
Event extends Occasion { public Date getEnd() { return end; } Event(int id,
                 String name,
                 Date start,
                 Date end,
                 Location location,
                 int creator,
                 int groupId); int getId(); void setId(int id); Date getEnd(); void setEnd(Date end); Date getStart(); void setStart(Date start); int getCreator(); void setCreator(int creator); String getStartString(); Location getLocation(); void setLocation(Location location); int getGroupId(); void setGroupId(int groupId); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void getEnd() throws Exception { assertEquals(date2, event1.getEnd()); }