@Test
public void testDownloadFileWhenTheFileExistsOnThePath() throws IOException {

    //GIVEN
    given(response.getOutputStream()).willReturn(outputStream);
    //WHEN
    underTest.downloadFile("src/test/resources/first_testreq.txt", response);
    //THEN
    verify(response).setHeader(Mockito.anyString(), Mockito.anyString());
    verify(response).setContentType(Mockito.anyString());
    verify(response).flushBuffer();
}