@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.validateRepository(chain, root, SubMonitor.convert(null));
DiagnosticsAsserter asserter = new DiagnosticsAsserter(chain);
asserter.assertErrors(asserter.issue("jruby.syntax.error"));
// optionally accept Unknown variables, and hyphen in name, but no other warnings
asserter.assertWarnings(
asserter.issue(IPPDiagnostics.ISSUE__UNKNOWN_VARIABLE).optional().greedy(),