### Question:
Ticket extends BaseEntity { public Date getExpirationDate() { return expirationDate; }  String getUserOid(); void setUserOid(String userOid); Type getType(); void setType(Type type); Date getExpirationDate(); void setExpirationDate(Date expirationDate);  }### Answer:
@Test public void getExpirationDate() throws Exception { Date date = new Date(); entity.setExpirationDate(date); assertEquals(date.getTime(), entity.getExpirationDate().getTime()); }