@Test
public void getUserRoleTest() throws Exception {

	this.mockMvc.perform(
			MockMvcRequestBuilders.post(ROLE_URL + "admin").header("Content-Type", "application/json").with(user))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.FORBIDDEN_403));
	
	this.mockMvc.perform(
			MockMvcRequestBuilders.post(ROLE_URL + "admin").header("Content-Type", "application/json").with(ven))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.FORBIDDEN_403));
	this.mockMvc.perform(MockMvcRequestBuilders.post(ROLE_URL + "mouaiccool")
			.header("Content-Type", "application/json").with(admin))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.NOT_FOUND_404));
	MvcResult andReturn = this.mockMvc.perform(
			MockMvcRequestBuilders.post(ROLE_URL + "admin").header("Content-Type", "application/json").with(admin))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.OK_200)).andReturn();
	assertTrue(andReturn.getResponse().getContentAsString().contains("ROLE_ADMIN"));
	assertTrue(andReturn.getResponse().getContentAsString().contains("ROLE_USER"));
	andReturn = this.mockMvc.perform(
			MockMvcRequestBuilders.post(ROLE_URL + "app").header("Content-Type", "application/json").with(admin))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.OK_200)).andReturn();
	assertTrue(andReturn.getResponse().getContentAsString().contains("ROLE_APP"));
	assertTrue(andReturn.getResponse().getContentAsString().contains("ROLE_DEVICE_MANAGER"));
	andReturn = this.mockMvc.perform(
			MockMvcRequestBuilders.post(ROLE_URL + "ven").header("Content-Type", "application/json").with(admin))
			.andExpect(MockMvcResultMatchers.status().is(HttpStatus.OK_200)).andReturn();
	assertTrue(andReturn.getResponse().getContentAsString().contains("ROLE_VEN"));
}