### Question:
RPackageAnalyzer extends AbstractFileTypeAnalyzer { @Override protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException { final File actualFile = dependency.getActualFile(); try { String contents = FileUtils.readFileToString(actualFile, Charset.defaultCharset()).trim(); if (BUILT_FIELD_PATTERN.matcher(contents).find()) { dependency.setEcosystem(DEPENDENCY_ECOSYSTEM); collectDescriptionData(dependency, actualFile.getName(), contents); } } catch (IOException e) { throw new AnalysisException("Problem occurred while reading dependency file.", e); } }  @Override String getName(); @Override AnalysisPhase getAnalysisPhase(); static final String DEPENDENCY_ECOSYSTEM; static final String ANALYZER_R_PACKAGE_ENABLED; }### Answer:
@Test public void analyzeDependencyTestNegative() throws AnalysisException { Dependency dependency = new Dependency(); dependency.setActualFilePath(this.getClass().getClassLoader().getResource( "owasp/analyzer/negative/DESCRIPTION").getPath()); rPackageAnalyzer.analyzeDependency(dependency, null); Assert.assertNull(dependency.getEcosystem()); }