package gov.samhsa.consent2share.infrastructure; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; @RunWith(MockitoJUnitRunner.class) public class ConsentRevokationPdfGeneratorImplPgTest { @Before public void setUp() throws Exception { } @Test public void testGenerateConsentRevokationPdf() { // Consent consent=mock (Consent.class); // Patient patient=mock (Patient.class); // when(consent.getPatient()).thenReturn(patient); // when(patient.getFirstName()).thenReturn("John"); // when(patient.getLastName()).thenReturn("Doe"); // new ConsentRevokationPdfGenerator().generateConsentRevokationPdf(consent); } }