@Test(timeout = 10000)
public void testGetSchedulerConf() throws Exception {

  ByteArrayOutputStream sysOutStream = new ByteArrayOutputStream();
  PrintStream sysOut = new PrintStream(sysOutStream);
  System.setOut(sysOut);
  try {
    super.setUp();
    GuiceServletConfig.setInjector(
        Guice.createInjector(new WebServletModule()));
    int exitCode = cli.getSchedulerConf("", resource());
    assertEquals("SchedConfCLI failed to run", 0, exitCode);
    assertTrue("Failed to get scheduler configuration",
        sysOutStream.toString().contains("testqueue"));
  } finally {
    cleanUp();
  }
}