@Test
public void skipConstraint() throws RuleException {

    analyzerRuleVisitor.skipConstraint(constraint, Severity.BLOCKER);
    verify(store, never()).executeQuery(eq(statement), anyMap());
    verify(reportWriter).beginConstraint(constraint);
    ArgumentCaptor<Result> resultCaptor = ArgumentCaptor.forClass(Result.class);
    verify(reportWriter).setResult(resultCaptor.capture());
    Result result = resultCaptor.getValue();
    assertThat(result.getStatus(), equalTo(Result.Status.SKIPPED));
    assertThat(result.getSeverity(), equalTo(Severity.BLOCKER));
    verify(reportWriter).endConstraint();
}