    @Test
    public void testUpdateStatusError() throws ExceptionReport, XmlException, IOException, SAXException, ParserConfigurationException {


		FileInputStream fis = new FileInputStream(new File("src/test/resources/LRDTCCorruptInputResponseDocStatusTrue.xml"));

		// parse the InputStream to create a Document
		Document doc = fac.newDocumentBuilder().parse(fis);

    	ExecuteRequest request = new ExecuteRequest(doc);

    	String exceptionText = "TestError";

    	request.updateStatusError(exceptionText);

    	File response = DatabaseFactory.getDatabase().lookupResponseAsFile(request.getUniqueId().toString());

    	ExecuteResponseDocument responseDoc = ExecuteResponseDocument.Factory.parse(response);

    	StatusType statusType = responseDoc.getExecuteResponse().getStatus();

    	assertTrue(validateExecuteResponse(responseDoc));
    	assertTrue(statusType.isSetProcessFailed());
    	assertTrue(statusType.getProcessFailed().getExceptionReport().getExceptionArray(0).getExceptionTextArray(0).equals(exceptionText));

    }