source: class ClinicalDocumentControllerTest {
  
  	@Mock ClinicalDocumentService clinicalDocumentService;
  	@Mock PatientService patientService;
  	@Mock ClinicalDocumentTypeCodeService clinicalDocumentTypeCodeService;
  	@Mock UserContext userContext;
  	@Mock AuthenticatedUser authenticatedUser;
  	@Mock AccessReferenceMapper accessReferenceMapper;
  	@Mock ClamAVService clamAVUtil;
  	@Mock RecaptchaService recaptchaUtil;
  	@Mock XmlValidation xmlValidator;
  	@Mock EventService eventService;
  	@Mock
  	private Logger logger;
  	 ClinicalDocumentController sut;
  	 ClinicalDocumentController clinicalDocumentController;
  	 MockMvc mockMvc;
  
  	@Test
  	public void testScanMultipartFileWhenFileIsNotClean() throws Exception {
  
target: 		MockMultipartFile file = new MockMultipartFile("file", "orig", null, "bar".getBytes());
  		doReturn(false).when(clamAVUtil).fileScanner(any(InputStream.class));
  		assertFalse(clinicalDocumentController.scanMultipartFile(file).toString().equals("true"));
  	}
  
  }