### Question:
Ticket extends BaseEntity { public Type getType() { return type; }  String getUserOid(); void setUserOid(String userOid); Type getType(); void setType(Type type); Date getExpirationDate(); void setExpirationDate(Date expirationDate);  }### Answer:
@Test public void getType() throws Exception { entity.setType(Ticket.Type.CHANGE_PASSWORD); assertEquals(Ticket.Type.CHANGE_PASSWORD, entity.getType()); entity.setType(Ticket.Type.INIT_PASSWORD); assertEquals(Ticket.Type.INIT_PASSWORD, entity.getType()); entity.setType(Ticket.Type.ACTIVATE); assertEquals(Ticket.Type.ACTIVATE, entity.getType()); entity.setType(Ticket.Type.FORGOT_PASSWORD); assertEquals(Ticket.Type.FORGOT_PASSWORD, entity.getType()); entity.setType(Ticket.Type.REGISTER); assertEquals(Ticket.Type.REGISTER, entity.getType()); }