@Test
void shouldSkipNonWorkspaceFile() throws InterruptedException {

    AffectedFilesResolver resolver = new AffectedFilesResolver();
    Report report = new Report();
    Issue issue = new IssueBuilder().setFileName(FILE_NAME).build();
    report.add(issue);
    RemoteFacade remoteFacade = mock(RemoteFacade.class);
    when(remoteFacade.exists(FILE_NAME)).thenReturn(true);
    when(remoteFacade.isInWorkspace(FILE_NAME)).thenReturn(false);
    resolver.copyAffectedFilesToBuildFolder(report, remoteFacade);
    assertThat(report.getErrorMessages()).isEmpty();
    assertThat(report.getInfoMessages()).hasSize(1);
    String message = report.getInfoMessages().get(0);
    assertThat(message).contains("0 copied");
    assertThat(message).contains("1 not in workspace");
    assertThat(message).contains("0 not-found");
    assertThat(message).contains("0 with I/O error");
}