private void validateYarnHBaseEnvProperties(Config hbaseEnvConfig,
      boolean expected, String queueName) {
    Map<String, String> map = hbaseEnvConfig.getProperties();
    assertTrue(map.containsKey(YARN_HBASE_SYSTEM_SERVICE_LAUNCH_PROPERTY_NAME));
    assertEquals(expected,
        Boolean.parseBoolean(map.get(YARN_HBASE_SYSTEM_SERVICE_LAUNCH_PROPERTY_NAME)));

    assertTrue(map.containsKey(YARN_HBASE_SYSTEM_SERVICE_QUEUE_PROPERTY_NAME));
    assertEquals(queueName, map.get(YARN_HBASE_SYSTEM_SERVICE_QUEUE_PROPERTY_NAME));
  }
Tests upgrade-related server side actions for YarnConfigCalculation
ambari-server/src/test/java/org/apache/ambari/server/serveraction/upgrades/YarnNodeManagerCapacityCalculationTest.java