assertTrue("Validate option missing.", argsList.contains("--validate"));
assertTrue("Validator option missing.", argsList.contains("--validator"));
String[] optionArgs = toStringArray(argsList);
SqoopOptions validationOptions = new ImportTool().parseArguments(
optionArgs, getConf(), getSqoopOptions(getConf()), true);
assertEquals(RowCountValidator.class,
validationOptions.getValidatorClass());
assertEquals(AbsoluteValidationThreshold.class,
validationOptions.getValidationThresholdClass());
assertEquals(AbortOnFailureHandler.class,
validationOptions.getValidationFailureHandlerClass());
} catch (Exception e) {
fail("The validation options are passed correctly: " + e.getMessage());
} finally {
dropTableIfExists(getTableName());
}