@Test
public void deleteTest() throws Exception {

	// check event exists
	MvcResult andReturn = this.mockMvc
			.perform(MockMvcRequestBuilders.get(DEMAND_RESPONSE_EVENT_URL + event1.getId()).with(adminSession))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.OK_200)).andReturn();
	DemandResponseEventReadDto dto = convertMvcResultToDemandResponseDto(andReturn);
	assertNotNull(dto);
	// perform delete exists
	this.mockMvc
			.perform(MockMvcRequestBuilders.delete(DEMAND_RESPONSE_EVENT_URL + event1.getId()).with(adminSession))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.OK_200));
	// check event has been deleted
	this.mockMvc
			.perform(MockMvcRequestBuilders.delete(DEMAND_RESPONSE_EVENT_URL + event1.getId()).with(adminSession))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.NOT_FOUND_404));
	// perform delete do not exists
	andReturn = this.mockMvc
			.perform(MockMvcRequestBuilders.delete(DEMAND_RESPONSE_EVENT_URL + "999").with(adminSession))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.NOT_FOUND_404)).andReturn();
	MockHttpServletResponse mockHttpServletResponse = andReturn.getResponse();
	assertEquals("", mockHttpServletResponse.getContentAsString());
}