@Test
  public void testBulkCommandsInheritence() throws Exception{
    //HDP 2.0.6 inherit HDFS configurations from HDP 2.0.5
    StackServiceComponentRequest requestWithParams = new StackServiceComponentRequest(STACK_NAME, NEW_STACK_VERSION, SERVICE_NAME, COMPONENT_NAME_DATANODE);
    Set<StackServiceComponentResponse> responsesWithParams = controller.getStackComponents(Collections.singleton(requestWithParams));
    Assert.assertEquals(1, responsesWithParams.size());
    for (StackServiceComponentResponse responseWithParams: responsesWithParams) {
      Assert.assertEquals(responseWithParams.getComponentName(), COMPONENT_NAME_DATANODE);
      Assert.assertEquals(responseWithParams.getBulkCommandsDisplayName(), "DataNodes");
      Assert.assertEquals(responseWithParams.getBulkCommandsMasterComponentName(), "NAMENODE");
    }
  }
Create a cluster with a service, and verify that the request tasks have the correct output log and error log paths.
ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java