@Test
public void testDeleteConsent_when_authentication_fails() throws Exception {

	when(consentService.isConsentBelongToThisUser(anyLong(), anyLong()))
			.thenReturn(false);
	mockMvc.perform(
			post("/consents/deleteConsents").param("consentId",
					"ScrambledText")).andExpect(
			view().name("redirect:/consents/listConsents.html"));
	verify(consentService, never()).deleteConsent(anyLong());
}