@Test
public void testInvalidOutputDir() throws Exception {

  FSConfigConverterTestCommons.configureYarnSiteXmlWithFsAllocFileDefined();
  FSConfigConverterTestCommons.configureFairSchedulerXml();
  FSConfigConverterTestCommons.configureDummyConversionRulesFile();
  FSConfigToCSConfigArgumentHandler argumentHandler =
      createArgumentHandler();
  String[] args = getArgumentsAsArray("-y",
      FSConfigConverterTestCommons.YARN_SITE_XML, "-o",
      FSConfigConverterTestCommons.YARN_SITE_XML);
  int retVal = argumentHandler.parseAndConvert(args);
  assertEquals("Return value", -1, retVal);
  assertTrue("Error content missing", fsTestCommons.getErrContent()
      .toString()
      .contains("Cannot start FS config conversion due to the following " +
          "precondition error"));
}