verifyNoMoreInteractions(mavenPluginHandler);
}
@Test
public void shouldExecuteMaven() {
Project project = mockProject();
<BUG>when(project.getFileSystem().hasTestFiles(argThat(is(Java.INSTANCE)))).thenReturn(true);
when(project.getAnalysisType()).thenReturn(Project.AnalysisType.DYNAMIC);</BUG>
assertThat(initializer.shouldExecuteOnProject(project), is(true));
assertThat(initializer.getMavenPluginHandler(project), instanceOf(JaCoCoMavenPluginHandler.class));
}

verifyNoMoreInteractions(mavenPluginHandler);
}
@Test
public void shouldExecuteMaven() {
Project project = mockProject();
InputFile inputFile = mock(InputFile.class);
when(project.getFileSystem().testFiles(Java.KEY)).thenReturn(Collections.singletonList(inputFile));
when(project.getAnalysisType()).thenReturn(Project.AnalysisType.DYNAMIC);
assertThat(initializer.shouldExecuteOnProject(project), is(true));
assertThat(initializer.getMavenPluginHandler(project), instanceOf(JaCoCoMavenPluginHandler.class));
}
