EventCodeDao { public boolean delete(EventCode eventCode) { return GenericDBUtils.delete(getSession(), eventCode); }  @SuppressWarnings("unchecked") List<EventCode> eventCodeQuery(List<SlotType1> slots); void parseParamFormattedString(String paramFormattedString, List<String> resultCollection); List<EventCode> findAll(); List<EventCode> findAllBy(Long documentId); boolean save(EventCode eventCode); EventCode findById(Long eventCodeId); boolean delete(EventCode eventCode);  }
@Test public void testDelete() { EventCode eventCode = new EventCode(); eventCodeDao.delete(eventCode); verify(session).delete(eventCode); }