@Test
public void readTest() throws Exception {

	// read 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);
	assertEquals(DemandResponseControllerTest.MODIFICATION, dto.getDescriptor().getModificationNumber());
	assertNotNull(dto.getCreatedTimestamp());
	assertEquals(DemandResponseControllerTest.DURATION, dto.getActivePeriod().getDuration());
	assertEquals(DemandResponseControllerTest.MARKETCONTEXT_NAME, dto.getDescriptor().getMarketContext());
	assertEquals(DemandResponseControllerTest.START, dto.getActivePeriod().getStart());
	assertEquals(DemandResponseEventSimpleValueEnum.SIMPLE_SIGNAL_PAYLOAD_HIGH.getValue(),
			dto.getSignals().get(0).getCurrentValue());
	assertTrue(DemandResponseEventStateEnum.ACTIVE.equals(dto.getDescriptor().getState()));
	// read do not exists
	andReturn = this.mockMvc
			.perform(MockMvcRequestBuilders.get(DEMAND_RESPONSE_EVENT_URL + "999").with(adminSession))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.NOT_FOUND_404)).andReturn();
	MockHttpServletResponse mockHttpServletResponse = andReturn.getResponse();
	assertEquals("", mockHttpServletResponse.getContentAsString());
}