}
PreflightDocument document = null;
try
{
FileDataSource bds = new FileDataSource(path);
PreflightParser parser = new PreflightParser(bds);
parser.parse();
document = parser.getPreflightDocument();
document.validate();
ValidationResult result = document.getResult();
Assert.assertFalse(path + " : Isartor file should be invalid (" + path + ")", result.isValid());
Assert.assertTrue(path + " : Should find at least one error", result.getErrorsList().size() > 0);