@Test
public void testConvertFSConfigurationWithConsoleParam()
    throws Exception {

  setupFSConfigConversionFiles();
  exit.expectSystemExitWithStatus(0);
  FSConfigToCSConfigConverterMain.main(new String[] {
      "-p",
      "-m",
      "-y", YARN_SITE_XML,
      "-f", FS_ALLOC_FILE,
      "-r", 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 ======="));
}