### Question:
DependencyCheckService { public List<Dependency> runScan(File outputFolder) { LOGGER.debug("Start scanning: " + outputFolder.getName()); Settings settings = populateSettings(); Engine engine = new Engine(Engine.Mode.EVIDENCE_COLLECTION, settings); engine.scan(outputFolder); try { engine.analyzeDependencies(); } catch (ExceptionCollection e) { LOGGER.warn("There were Exceptions while scan: " + e.getMessage(), e); } finally { engine.close(); settings.cleanup(); LOGGER.debug("Finish scanning: " + outputFolder.getName()); } return Arrays.stream(engine.getDependencies()) .filter(getDependencyFilter()) .map(Dependency::convert) .collect(Collectors.toList()); }  List<Dependency> runScan(File outputFolder);  }### Answer:
@Test public void dependencyCheckServiceTest() throws URISyntaxException, ExceptionCollection { List<Dependency> dependencies = dependencyCheckService.runScan(new File(classLoader.getResource("owasp/analyzer").toURI())); Assert.assertEquals(1, dependencies.size()); Assert.assertEquals(RPackageAnalyzer.DEPENDENCY_ECOSYSTEM, dependencies.get(0).getEcosystem()); Assert.assertEquals("PositiveTest", dependencies.get(0).getName()); }