@Test
public void testCompileMetadata() {

    List<ChefCookbookConfiguration> cookbookConfigs;
    CookbookParseResult extractedCookbookConfigs = new CookbookParseResult("openssh");
    extractedCookbookConfigs = ChefCookbookAnalyzer.compile(metadata, extractedCookbookConfigs);
    cookbookConfigs = extractedCookbookConfigs.getAllConfigsAsList();
    assertEquals(4, cookbookConfigs.size());
    for (int count = 0; count < cookbookConfigs.size(); count++) {
        assertEquals("openssh", cookbookConfigs.get(count).getName());
        assertEquals("Installs and configures OpenSSH client and daemon", cookbookConfigs.get(count).getDescription());
        assertTrue(cookbookConfigs.get(count).getDepends().containsKey("iptables"));
    }
    assertTrue(extractedCookbookConfigs.getCookbookConfigs().containsKey("aix"));
}