@Override
    public String getName() {
        return ANALYZER_NAME;
    }
@Test
    public void testAnalyzePackageJson() throws AnalysisException {
        final Dependency result = new Dependency(BaseTest.getResourceAsFile(this,
                "ruby/vulnerable/gems/specifications/rest-client-1.7.2.gemspec"));
        analyzer.analyze(result, null);
        final String vendorString = result.getEvidence(EvidenceType.VENDOR).toString();
        assertEquals(RubyGemspecAnalyzer.DEPENDENCY_ECOSYSTEM, result.getEcosystem());
        assertThat(vendorString, containsString("REST Client Team"));
        assertThat(vendorString, containsString("rest-client_project"));
        assertThat(vendorString, containsString("rest.client@librelist.com"));
        assertThat(vendorString, containsString("https://github.com/rest-client/rest-client"));
        assertThat(result.getEvidence(EvidenceType.PRODUCT).toString(), containsString("rest-client"));
        assertThat(result.getEvidence(EvidenceType.VERSION).toString(), containsString("1.7.2"));
        assertEquals("rest-client", result.getName());
        assertEquals("1.7.2", result.getVersion());
        assertEquals("rest-client:1.7.2", result.getDisplayFileName());
    }