@Test
public void addRequiredPackage() {

    ChefPackage requiredPackage = new ChefPackage("java", "8");
    cookbookConfiguration.addRequiredPackage(requiredPackage);
    assertEquals(requiredPackage, cookbookConfiguration.getRequiredPackages().get("java"));
}