}
requestInfoProperties.remove(RequestResourceProvider.ACTION_ID);
provider.createResources(request);
Assert.assertTrue(actionRequest.hasCaptured());
ExecuteActionRequest capturedRequest = actionRequest.getValue();
Assert.assertTrue(capturedRequest.isCommand());
Assert.assertEquals(null, capturedRequest.getActionName());
Assert.assertEquals("HDFS_SERVICE_CHECK", capturedRequest.getCommandName());
Assert.assertEquals(1, capturedRequest.getResourceFilters().size());
RequestResourceFilter capturedResourceFilter = capturedRequest.getResourceFilters().get(0);
Assert.assertEquals("HDFS", capturedResourceFilter.getServiceName());
Assert.assertEquals(null, capturedResourceFilter.getComponentName());
Assert.assertEquals(3, capturedResourceFilter.getHostNames().size());
Assert.assertArrayEquals(expectedHosts, capturedResourceFilter.getHostNames().toArray());
Assert.assertEquals(2, capturedRequest.getParameters().size());
for(String key : expectedParams.keySet()) {
Assert.assertEquals(expectedParams.get(key), capturedRequest.getParameters().get(key));
}
}