@Test
public void addInstalledPackage() {

    ChefPackage installedPackage = new ChefPackage("java", "8");
    cookbookConfiguration.addInstalledPackage(installedPackage);
    assertEquals(installedPackage, cookbookConfiguration.getInstalledPackages().get("java"));
}