@Test
public void testConvertFSConfigurationErrorHandling() throws Exception {

  setupFSConfigConversionFiles(true);
  String[] args = getArgumentsAsArrayWithDefaults("-f",
      FSConfigConverterTestCommons.FS_ALLOC_FILE,
      "-r", FSConfigConverterTestCommons.CONVERSION_RULES_FILE, "-p");
  FSConfigToCSConfigArgumentHandler argumentHandler =
      createArgumentHandler();
  Mockito.doThrow(UnsupportedPropertyException.class)
    .when(mockConverter)
    .convert(ArgumentMatchers.any(FSConfigToCSConfigConverterParams.class));
  int retVal = argumentHandler.parseAndConvert(args);
  assertEquals("Return value", -1, retVal);
  assertTrue("Error content missing", fsTestCommons.getErrContent()
      .toString().contains("Unsupported property/setting encountered"));
}