@Test
public void compileMyAppCookbook() {

    String cookbookName = "myapp";
    String cookbookPath;
    ClassLoader classLoader = getClass().getClassLoader();
    File file = new File(classLoader.getResource(cookbookName).getFile());
    CookbookParseResult cookbookParseResult = new CookbookParseResult(cookbookName);
    cookbookPath = file.getAbsolutePath().replace("\\", "/");
    cookbookParseResult.setCookbookPath(cookbookPath);
    cookbookParseResult = new ChefCookbookAnalyzer().compileCookbook(cookbookParseResult, false);
    cookbookParseResult.clear();
    /**
     * Dependencies are stored in dependencies folder of the myapp cookbook
     * Delete downloaded dependencies
     */
    file = new File(classLoader.getResource("myapp/dependencies").getFile());
    CrawledCookbooks.deleteFile(file.getPath());
}