private Host createMockHost(String hostName, String clusterName, Map<String, HostConfig> desiredConfigs,
                              String status, String recoverySummary, RecoveryReport recoveryReport) {
    Host host = createMock(Host.class);
    HostHealthStatus hostHealthStatus = new HostHealthStatus(HealthStatus.HEALTHY, "");
    HostResponse hostResponse = new HostResponse(hostName, clusterName, null, 1, 1, null,
        "centos6", 1024, null, 1, 1, null, null, null, hostHealthStatus, HostState.HEALTHY, status);

    hostResponse.setRecoverySummary(recoverySummary);
    hostResponse.setRecoveryReport(recoveryReport);
    expect(host.convertToResponse()).andReturn(hostResponse).anyTimes();

    try {
      expect(host.getDesiredHostConfigs(EasyMock.anyObject(),
          EasyMock.anyObject())).andReturn(desiredConfigs).anyTimes();

    } catch (AmbariException e) {
      Assert.fail(e.getMessage());
    }
    expect(host.getHostName()).andReturn(hostName).anyTimes();
    expect(host.getHostId()).andReturn(1L).anyTimes();
    expect(host.getRackInfo()).andReturn("rackInfo").anyTimes();
    host.setRackInfo(EasyMock.anyObject());
    expectLastCall().anyTimes();
    return host;
  }
Ensure that HostNotFoundException is handled where there are multiple requests as would be the
case when an OR predicate is provided in the query.
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/HostResourceProviderTest.java