@Test
public void should_Execute_On_Project_only_if_at_least_one_exec_exists() {

  when(configuration.getItReportPath()).thenReturn("it.exec");
  when(configuration.getReportPath()).thenReturn("ut.exec");
  when(pathResolver.relativeFile(any(File.class), eq("it.exec"))).thenReturn(jacocoITData);
  when(pathResolver.relativeFile(any(File.class), eq("ut.exec"))).thenReturn(fakeExecFile());
  assertThat(sensor.shouldExecuteOnProject()).isTrue();
  when(pathResolver.relativeFile(any(File.class), eq("it.exec"))).thenReturn(fakeExecFile());
  when(pathResolver.relativeFile(any(File.class), eq("ut.exec"))).thenReturn(jacocoUTData);
  assertThat(sensor.shouldExecuteOnProject()).isTrue();
  when(pathResolver.relativeFile(any(File.class), eq("it.exec"))).thenReturn(fakeExecFile());
  when(pathResolver.relativeFile(any(File.class), eq("ut.exec"))).thenReturn(fakeExecFile());
  assertThat(sensor.shouldExecuteOnProject()).isFalse();
  when(configuration.shouldExecuteOnProject(false)).thenReturn(true);
  assertThat(sensor.shouldExecuteOnProject()).isTrue();
}