}
@Test
public void testOneError () throws Exception {
ValidationResult result = new ValidationResult(false);
result.addError(new ValidationResult.ValidationError("7"));
parser.createResponseWithError(document, "pdftype", result, preflight);
Assert.assertNotNull(xpath.evaluate("errors[@count='1']", preflight, XPathConstants.NODE));
NodeList nl = (NodeList)xpath.evaluate("errors/error[@count='1']", preflight, XPathConstants.NODESET);
Assert.assertEquals(1,nl.getLength());
}