@Test
public void validateModule_notok() throws Exception {
File root = TestDataProvider.getTestFile(new Path("testData/broken/broken-module/"));
ValidationService vs = getValidationService();
Diagnostic chain = new Diagnostic();
vs.validate(chain, root, null, null, SubMonitor.convert(null));
DiagnosticsAsserter asserter = new DiagnosticsAsserter(chain);
asserter.assertErrors(asserter.messageFragment("unexpected tIDENTIFIER"));
// optionally accept Unknown variables, and hyphen in name, but no other warnings
asserter.assertWarnings(
asserter.issue(IPPDiagnostics.ISSUE__UNKNOWN_VARIABLE).optional().greedy(),