void setHostRoleCommands(Collection<HostRoleCommandEntity> tasks) {
      for (HostRoleCommandEntity task : tasks) {
        HostRoleCommand command = HostRoleCommandHelper.createWithTaskId(task.getHostName(), taskId++, hostRoleCommandFactory);
        command.setStatus(task.getStatus());
        hostRoleCommands.add(command);
      }
    }
Tests that when there are no tasks and all counts are 0, that the returned
status is {@link HostRoleStatus#COMPLETED}.

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/CalculatedStatusTest.java