@Test
public void searchTest() {

	Long end = start + 2 * 60 * 60 * 1000;
	List<DemandResponseEventFilter> filters = new ArrayList<>();
	Page<DemandResponseEvent> findToSentEvent = demandResponseEventService.search(filters, start, end);
	assertEquals(3, findToSentEvent.getTotalElements());
	filters = DemandResponseEventFilter.builder().addVenId("ven2").build();
	findToSentEvent = demandResponseEventService.search(filters, start, end);
	assertEquals(2, findToSentEvent.getTotalElements());
	filters = DemandResponseEventFilter.builder().addVenId("ven2").addState(DemandResponseEventStateEnum.ACTIVE)
			.build();
	findToSentEvent = demandResponseEventService.search(filters, start, end);
	assertEquals(1, findToSentEvent.getTotalElements());
	filters = DemandResponseEventFilter.builder().addVenId("ven2").addState(DemandResponseEventStateEnum.CANCELLED)
			.build();
	findToSentEvent = demandResponseEventService.search(filters, start, end);
	assertEquals(1, findToSentEvent.getTotalElements());
	filters = DemandResponseEventFilter.builder().addState(DemandResponseEventStateEnum.ACTIVE).build();
	findToSentEvent = demandResponseEventService.search(filters, start, end);
	assertEquals(2, findToSentEvent.getTotalElements());
	filters = DemandResponseEventFilter.builder().addMarketContext(marketContext.getName()).build();
	findToSentEvent = demandResponseEventService.search(filters, start, end);
	assertEquals(3, findToSentEvent.getTotalElements());
}