### Question:
Event extends Occasion { public int getId() { return id; } 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 getId() throws Exception { assertEquals(ids[0], event1.getId()); }