@Test
public void testMissingOutputDirArgument() throws Exception {

  setupFSConfigConversionFiles(true);
  FSConfigToCSConfigArgumentHandler argumentHandler =
      createArgumentHandler();
  String[] args = new String[] {"-y",
      FSConfigConverterTestCommons.YARN_SITE_XML};
  int retVal = argumentHandler.parseAndConvert(args);
  assertEquals("Return value", -1, retVal);
  assertTrue("Error content missing", fsTestCommons.getErrContent()
      .toString()
      .contains("Output directory or console mode was not defined"));
}