@Test
public void testFindConsentRevokationPdfDto() {

	ConsentService consentService = spy(cst);
	ConsentRevokationPdfDto consentRevokationPdfDto = mock(ConsentRevokationPdfDto.class);
	Consent consent = mock(Consent.class);
	SignedPDFConsentRevocation signedPDFConsentRevocation = mock(SignedPDFConsentRevocation.class);
	Patient patient = mock(Patient.class);
	when(consentService.makeConsentRevokationPdfDto()).thenReturn(
			consentRevokationPdfDto);
	when(consentRepository.findOne(anyLong())).thenReturn(consent);
	when(consent.getSignedPdfConsentRevoke()).thenReturn(
			signedPDFConsentRevocation);
	when(consent.getPatient()).thenReturn(patient);
	when(patient.getFirstName()).thenReturn("John");
	when(patient.getLastName()).thenReturn("Doe");
	when(signedPDFConsentRevocation.getContent()).thenReturn(
			new byte[] { 1, 2, 3 });
	consentService.findConsentRevokationPdfDto((long) 1);
	verify(consentRevokationPdfDto).setFilename(anyString());
	verify(consentRevokationPdfDto).setConsentName(anyString());
	verify(consentRevokationPdfDto).setId(anyLong());
}