@Override
    public String getName() {
        return ANALYZER_NAME;
    }
@Test
    public void testNuspecAnalysis() throws Exception {

        File file = BaseTest.getResourceAsFile(this, "nuspec/test.nuspec");
        Dependency result = new Dependency(file);
        instance.analyze(result, null);

        assertEquals(NuspecAnalyzer.DEPENDENCY_ECOSYSTEM, result.getEcosystem());

        //checking the owner field
        assertTrue(result.getEvidence(EvidenceType.VENDOR).toString().toLowerCase().contains("bobsmack"));

        //checking the author field
        assertTrue(result.getEvidence(EvidenceType.VENDOR).toString().toLowerCase().contains("brianfox"));

        //checking the id field
        assertTrue(result.getEvidence(EvidenceType.PRODUCT).toString().contains("TestDepCheck"));

        //checking the title field
        assertTrue(result.getEvidence(EvidenceType.PRODUCT).toString().contains("Test Package"));

        assertTrue(result.getEvidence(EvidenceType.VERSION).toString().contains("1.0.0"));
        assertEquals("1.0.0", result.getVersion());
        assertEquals("TestDepCheck", result.getName());
        assertEquals("TestDepCheck:1.0.0", result.getDisplayFileName());
    }