private void getChildQueues(
      org.apache.hadoop.yarn.api.records.QueueInfo parent,
      List<org.apache.hadoop.yarn.api.records.QueueInfo> queues) {
    List<org.apache.hadoop.yarn.api.records.QueueInfo> childQueues = parent.getChildQueues();

    for (org.apache.hadoop.yarn.api.records.QueueInfo child : childQueues) {
      queues.add(child);
      getChildQueues(child, queues);
    }
  }
  private void getChildQueues(QueueInfo parent, List<QueueInfo> queues, boolean recursive) {
    List<QueueInfo> childQueues = parent.getChildQueues();

    for (QueueInfo child : childQueues) {
      queues.add(child);
      if (recursive) {
        getChildQueues(child, queues, recursive);
      }
    }
  }
 @Test
 public void testFifoSchedulerCapacityWhenNoNMs() {
   FifoScheduler scheduler = new FifoScheduler();
   QueueInfo queueInfo = scheduler.getQueueInfo(null, false, false);
   Assert.assertEquals(0.0f, queueInfo.getCurrentCapacity());
 }