public class BootstrapConfigForGroupTest {
@Test(expectedExceptions = IllegalStateException.class)
public void testWhenNoDatabagItem() throws IOException {
ChefApi chefApi = createMock(ChefApi.class);
Client client = createMock(Client.class);
BootstrapConfigForGroup fn = new BootstrapConfigForGroup("jclouds", chefApi);
expect(chefApi.getDatabagItem("jclouds", "foo")).andReturn(null);