@Test
public void putCookbookConfigsAsList() {

    CookbookParseResult parseResult = new CookbookParseResult("test");
    List<ChefCookbookConfiguration> configList = new LinkedList<>();
    ChefCookbookConfiguration chefConfig = new ChefCookbookConfiguration();
    ChefCookbookConfiguration chefConfig1 = new ChefCookbookConfiguration();
    ChefCookbookConfiguration chefConfig2 = new ChefCookbookConfiguration();
    chefConfig.setName("config1");
    chefConfig1.setName("config2");
    chefConfig2.setName("config3");
    chefConfig.setSupports(new Platform("ubuntu", "16.04"));
    chefConfig1.setSupports(new Platform("ubuntu", "18.04"));
    chefConfig2.setSupports(new Platform("windows", "18.04"));
    configList.add(chefConfig);
    configList.add(chefConfig1);
    configList.add(chefConfig2);
    parseResult.putCookbookConfigsAsList(configList);
    assertEquals(3, parseResult.getAllConfigsAsList().size());
}