@Test
public void registeredUserTest() throws Exception {

	this.mockMvc
			.perform(MockMvcRequestBuilders.get(ACCOUNT_URL).header("Content-Type", "application/json").with(user))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.FORBIDDEN_403));
	MvcResult andReturn = this.mockMvc
			.perform(MockMvcRequestBuilders.get(ACCOUNT_URL).header("Content-Type", "application/json").with(admin))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.OK_200)).andReturn();
	AbstractUserWithRoleDto convertMvcResultToOadrUserDto = convertMvcResultToObject(andReturn,
			AbstractUserWithRoleDto.class);
	assertEquals("admin", convertMvcResultToOadrUserDto.getUsername());
	assertTrue(convertMvcResultToOadrUserDto.getRoles().contains("ROLE_ADMIN"));
	andReturn = this.mockMvc
			.perform(MockMvcRequestBuilders.get(ACCOUNT_URL).header("Content-Type", "application/json").with(app))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.OK_200)).andReturn();
	convertMvcResultToOadrUserDto = convertMvcResultToObject(andReturn, AbstractUserWithRoleDto.class);
	assertEquals("app", convertMvcResultToOadrUserDto.getUsername());
	assertTrue(convertMvcResultToOadrUserDto.getRoles().contains("ROLE_DEVICE_MANAGER"));
}