@Test
public void visitorGetsVisited() {

    final PredicateVisitor visitorMock = mock(PredicateVisitor.class);
    final SingleComparisonNode singleComparisonNode =
            new SingleComparisonNode(SingleComparisonNode.Type.EQ,
                    "propertyName", "propertyValue");
    singleComparisonNode.accept(visitorMock);
    verify(visitorMock).visit(singleComparisonNode);
}