@Test(expected=IOException.class)
public void testParseQueue() throws IOException {

  CapacityScheduler cs = new CapacityScheduler();
  cs.setConf(new YarnConfiguration());
  CapacitySchedulerConfiguration conf = new CapacitySchedulerConfiguration();
  setupQueueConfiguration(conf);
  conf.setQueues(CapacitySchedulerConfiguration.ROOT + ".a.a1", new String[] {"b1"} );
  conf.setCapacity(CapacitySchedulerConfiguration.ROOT + ".a.a1.b1", 100.0f);
  conf.setUserLimitFactor(CapacitySchedulerConfiguration.ROOT + ".a.a1.b1", 100.0f);
  cs.reinitialize(conf, new RMContextImpl(null, null, null, null, null,
    null, new RMContainerTokenSecretManager(conf),
    new NMTokenSecretManagerInRM(conf),
    new ClientToAMTokenSecretManagerInRM(), null));
}