@Test
public void requestFileDoesNotDownloadIfFileExists() throws Exception {

    Path targetDirectory = temporaryFolder.newFolder("target").toPath();
    String filename = "artifactId-version" + (classifierInformation.isSource ? "-sources" : "") + ".jar";
    File expectedFile = new File(targetDirectory.toFile(), filename);
    new FileOutputStream(expectedFile).close();
    hr.requestFile(mavenCoordinate, targetDirectory, classifierInformation);
    verify(httpHelperMock, never()).downloadFile(anyString(), eq(targetDirectory), anyString());
}