@Test
public void testConvertFSConfigurationWithLongSwitches()
    throws IOException {

  exit.expectSystemExitWithStatus(0);
  setupFSConfigConversionFiles();
  FSConfigToCSConfigConverterMain.main(new String[] {
      "--print",
      "--convert-placement-rules",
      "--yarnsiteconfig", YARN_SITE_XML,
      "--fsconfig", FS_ALLOC_FILE,
      "--rulesconfig", CONVERSION_RULES_FILE});
  String stdout = converterTestCommons.getStdOutContent().toString();
  assertTrue("Stdout doesn't contain yarn-site.xml",
      stdout.contains("======= yarn-site.xml ======="));
  assertTrue("Stdout doesn't contain capacity-scheduler.xml",
      stdout.contains("======= capacity-scheduler.xml ======="));
  assertTrue("Stdout doesn't contain mapping-rules.json",
      stdout.contains("======= mapping-rules.json ======="));
}