@Test(expected = AmbariException.class)
public void testServiceCheckComponentWithEmptyHosts() throws Exception {

  AmbariCustomCommandExecutionHelper ambariCustomCommandExecutionHelper = injector.getInstance(AmbariCustomCommandExecutionHelper.class);
  List<RequestResourceFilter> requestResourceFilter = new ArrayList<RequestResourceFilter>() {{
    add(new RequestResourceFilter("FLUME", null, null));
  }};
  ActionExecutionContext actionExecutionContext = new ActionExecutionContext("c1", "SERVICE_CHECK", requestResourceFilter);
  Stage stage = EasyMock.niceMock(Stage.class);
  ambariCustomCommandExecutionHelper.addExecutionCommandsToStage(actionExecutionContext, stage, new HashMap<String, String>());
  Assert.fail("Expected an exception since there are no hosts which can run the Flume service check");
}