@Test
public void testIsClusterPreviewCommandAvailableForNoAssignments() {

  when(context.isFocusOnClusterBuild()).thenReturn(true);
  ReflectionTestUtils.setField(clusterCommands, "hostGroups", singletonMap("group1", emptyList()));
  boolean result = clusterCommands.isClusterPreviewCommandAvailable();
  assertFalse(result);
}