	@Test
	public void testMojoHandlingSchemaInvalidBpmn()
			throws XPathExpressionException, SAXException, IOException,
			MojoExecutionException {

		Resource res = new Resource();
		res.setDirectory("src/test/invalid-resources");
		mojo.resources.add(res);
		mojo.application = "Yaoqiang BPMN Editor 2.2.6";
		mojo.execute();

		assertTrue(overview.exists());
		Document document = docBuilder.parse(overview);

		XPathExpression xpath = createXpathExpression("//div[@class=\"test\" and @testcase=\"A.1.0\"  and contains(@tool, \"Yaoqiang\")]");
		NodeList nodes = (NodeList) xpath.evaluate(document,
				XPathConstants.NODESET);

		Node invalidNode = nodes.item(0);

		// There should be 2 findings: an invalid element and an invalid
		// attribute
		assertEquals("2",
				invalidNode.getAttributes().getNamedItem("data-xsd-finding")
						.getNodeValue());
	}