@Test
public void testAutoAssignForEmptyResult() throws InvalidHostGroupHostAssociation {

  Map<String, List<String>> hostGroups = singletonMap("group1", asList("host1"));
  ReflectionTestUtils.setField(clusterCommands, "hostGroups", hostGroups);
  when(context.getFocusValue()).thenReturn("blueprint");
  when(client.recommendAssignments("blueprint")).thenReturn(new HashMap<String, List<String>>());
  clusterCommands.autoAssign();
  Map<String, List<String>> result = (Map<String, List<String>>) ReflectionTestUtils.getField(clusterCommands, "hostGroups");
  assertEquals(hostGroups, result);
}