### Question:
HistoryProvider implements IHistoryProvider { @Override public IRainbowMessage getEvent(Date time) { IRainbowMessage event; event = databaseconn.getEvent(time); return event; } HistoryProvider(IDatabaseConnector databaseCon);  HistoryProvider(ISystemViewProvider acmeSystemViewProvider,
            ISystemConfiguration systemConfig); @Override IModelInstance<?> getModelState(Date time); @Override ArrayList<IRainbowMessage> getEventRange(Date startTime, Date endTime); @Override ArrayList<IRainbowMessage> getEventRangeByType(String channel,
            Date startTime, Date endTime); @Override ArrayList<IRainbowMessage> getModelEventRange(Date startTime,
            Date endTime); @Override IRainbowMessage getEvent(Date time); @Override void setSession(String name); @Override ArrayList<String> getSessionList(); String getReadSession(); @Override Date getStartDate(); @Override boolean currentSessionIsWriteSession(); @Override Date getMaxDate(); @Override List<IRainbowMessage> getNumberOfEventsBefore(Date endTime,
            int numEvents); @Override void closeDatabaseConnection();  }### Answer:
@Test public void testgetEvent() { IRainbowMessage event = null; Calendar cal = Calendar.getInstance(); Date date = cal.getTime(); event = hp.getEvent(date); assertNotNull(event); }