@Test
public void testCreateCluster() throws HttpResponseException {

  String blueprint = "blueprint";
  Map<String, List<String>> map = singletonMap("group1", asList("host", "host2"));
  ReflectionTestUtils.setField(clusterCommands, "hostGroups", map);
  when(context.getFocusValue()).thenReturn(blueprint);
  when(client.getClusterName()).thenReturn("cluster");
  String result = clusterCommands.createCluster(false);
  verify(client).createCluster(blueprint, blueprint, map);
  verify(context).resetFocus();
  assertFalse(result.contains("Failed"));
  assertTrue(result.contains("Successfully"));
}