CookbookParseResult { public HashMap<String, ChefCookbookConfiguration> getCookbookConfigsByPlatform(String platformName) { return cookbookConfigs.get(platformName); } CookbookParseResult(String cookbookName);  CookbookParseResult(CookbookParseResult cookbookParseResult); String getCookbookName(); void setCookbookName(String cookbookName); boolean isInDependentRecipe(); void setInDependentRecipe(boolean inDependentRecipe); String getAttribute(String key); void putAttribute(String key, String value); HashMap<String, String> getAttributes(); HashMap<String, HashMap<String, ChefCookbookConfiguration>> getCookbookConfigs(); HashMap<String, ChefCookbookConfiguration> getCookbookConfigsByPlatform(String platformName); void setCookbookConfigs(HashMap<String, HashMap<String, ChefCookbookConfiguration>> cookbookConfigs); void putCookbookConfig(ChefCookbookConfiguration cookbookConfiguration); void clear(); void clearAttributes(); void clearConfigurations(); void putCookbookConfigsAsList(List<ChefCookbookConfiguration> cookbookConfigList); List<ChefCookbookConfiguration> getAllConfigsAsList(); void addNotatedPackage(ChefPackage chefPackage); ArrayList<ChefPackage> getNotatedPackages(); void clearNotatedPackage(); void addAttributeToAllConfigs(String name, List value); void replaceCookbookConfigs(List<ChefCookbookConfiguration> cookbookConfigList); List<CookbookParseResult> getListOfConfigsInOwnParseresult(); int getNumOfCookbookConfigs(); String getCookbookPath(); void setCookbookPath(String cookbookPath); void prepareForDependencie(String cookbookName); boolean isInRecursiveTransformation(); void setInRecursiveTransformation(boolean inRecursiveTransformation);  }
@Test public void getCookbookConfigsByPlatform() { cookbookParseResult.getCookbookConfigsByPlatform("windows"); assertTrue(cookbookParseResult.getCookbookConfigsByPlatform("windows").containsKey("10")); assertFalse(cookbookParseResult.getCookbookConfigsByPlatform("windows").containsKey("18.04")); }