@Test
public void testSignConsentRevokation_when_authentication_fails()
		throws Exception {

	ConsentRevokationPdfDto consentRevokationPdfDto = mock(ConsentRevokationPdfDto.class);
	when(consentService.findConsentRevokationPdfDto(anyLong())).thenReturn(
			consentRevokationPdfDto);
	when(consentService.isConsentBelongToThisUser(anyLong(), anyLong()))
			.thenReturn(false);
	mockMvc.perform(
			post("/consents/signConsentRevokation").param("consentId",
					"ScrambledText").param("revokationType", "NO NEVER"))
			.andExpect(view().name("redirect:listConsents.html"));
	verify(consentService, never()).signConsentRevokation(
			consentRevokationPdfDto);
}