@Test
public void missingParameter() {

    String statement = "match (n) return n";
    Concept concept = createConcept(statement);
    ReportPlugin reportWriter = mock(ReportPlugin.class);
    try {
        AnalyzerRuleVisitor analyzerRuleVisitor = new AnalyzerRuleVisitor(configuration, analyzerContext, Collections.emptyMap(), ruleInterpreterPlugins,
                reportWriter);
        analyzerRuleVisitor.visitConcept(concept, Severity.MINOR);
        fail("Expecting an " + RuleException.class.getName());
    } catch (RuleException e) {
        String message = e.getMessage();
        assertThat(message, containsString(concept.getId()));
        assertThat(message, containsString(PARAMETER_WITHOUT_DEFAULT));
    }
}