DemandResponseEventService { public List<DemandResponseEvent> findToSentEventByVenUsername(String username) { return this.findToSentEventByVenUsername(username, null); }  @PostConstruct void init(); @Transactional(readOnly = false) DemandResponseEvent create(DemandResponseEventCreateDto dto); @Transactional(readOnly = false) DemandResponseEvent update(DemandResponseEvent event, DemandResponseEventUpdateDto dto); void distributeEventToPushVen(DemandResponseEvent event); @Transactional(readOnly = false) DemandResponseEvent publish(DemandResponseEvent event); @Transactional(readOnly = false) DemandResponseEvent active(DemandResponseEvent event); @Transactional(readOnly = false) DemandResponseEvent cancel(DemandResponseEvent event); Optional<DemandResponseEvent> findById(Long id); List<DemandResponseEventSignal> getSignals(DemandResponseEvent event); boolean delete(Long id); void delete(Iterable<DemandResponseEvent> entities); boolean hasResponded(String venId, DemandResponseEvent event); void updateVenDemandResponseEvent(Long demandResponseEventId, Long modificationNumber, String venUsername,
			DemandResponseEventOptEnum venOpt); VenDemandResponseEvent getVenDemandResponseEvent(Long demandResponseEventId, String venUsername); DemandResponseEventOptEnum getVenDemandResponseEventOpt(Long demandResponseEventId, String venUsername); List<DemandResponseEvent> findToSentEventByVenUsername(String username); List<DemandResponseEvent> findToSentEventByVenUsername(String username, Long size); List<VenDemandResponseEvent> getVenDemandResponseEvent(Long demandResponseEventId); Page<DemandResponseEvent> search(List<DemandResponseEventFilter> filters, Long start, Long end); Page<DemandResponseEvent> search(List<DemandResponseEventFilter> filters, Long start, Long end, Integer page,
			Integer size);  }
@Test public void findtoSentEvent() { List<DemandResponseEvent> findToSentEvent = demandResponseEventService .findToSentEventByVenUsername(ven1.getUsername()); assertEquals(1, findToSentEvent.size()); findToSentEvent = demandResponseEventService.findToSentEventByVenUsername(ven1.getUsername(), 1L); assertEquals(1, findToSentEvent.size()); }