@Test
public void addAttributeToAllConfigs() {

    String attributeValue = "testvalue";
    List<String> expectedValues = new ArrayList<>(Arrays.asList(attributeValue));
    ChefCookbookConfiguration secondCookbookConfiguration = new ChefCookbookConfiguration(cookbookConfiguration);
    secondCookbookConfiguration.setSupports(new Platform("windows", "10"));
    cookbookParseResult.putCookbookConfig(secondCookbookConfiguration);
    cookbookParseResult.addAttributeToAllConfigs("testname", Collections.singletonList(attributeValue));
    assertEquals(expectedValues, cookbookParseResult.getAllConfigsAsList().get(0).getAttribute("testname"));
    assertEquals(expectedValues, cookbookParseResult.getAllConfigsAsList().get(1).getAttribute("testname"));
}