@Test
public void requestFileRecognizesNonExistingArtifactReturningAnEmptyOptional() throws IOException, MavenInvocationException {

    Path targetDirectory = temporaryFolder.newFolder("target").toPath();
    Mockito.when(defaultInvokerMock.execute(ArgumentMatchers.any(InvocationRequest.class)))
            .thenReturn(getDummyInvocationResult(0));
    Optional<File> requestResult = mir.requestFile(mavenCoordinate, targetDirectory, ClassifierInformation.DEFAULT_JAR);
    assertThat(requestResult).isEmpty();
}