@Test
public void visitorGetsVisited() {

    final PredicateVisitor visitorMock = mock(PredicateVisitor.class);
    final MultiComparisonNode multiComparisonNode = new MultiComparisonNode(
            MultiComparisonNode.Type.IN, "propertyName");
    multiComparisonNode.accept(visitorMock);
    verify(visitorMock).visit(multiComparisonNode);
}