@Test
public void testConvertFSConfigurationDefaults()
    throws Exception {

  setupFSConfigConversionFiles();
  exit.expectSystemExitWithStatus(0);
  FSConfigToCSConfigConverterMain.main(new String[] {
      "-o", OUTPUT_DIR,
      "-y", YARN_SITE_XML,
      "-f", FS_ALLOC_FILE,
      "-r", CONVERSION_RULES_FILE});
  boolean csConfigExists =
      new File(OUTPUT_DIR, "capacity-scheduler.xml").exists();
  boolean yarnSiteConfigExists =
      new File(OUTPUT_DIR, "yarn-site.xml").exists();
  assertTrue("capacity-scheduler.xml was not generated", csConfigExists);
  assertTrue("yarn-site.xml was not generated", yarnSiteConfigExists);
}