SingleComparisonNode extends ComparisonNode<SingleComparisonNode.Type, Object> { public void accept(final PredicateVisitor predicateVisitor) { predicateVisitor.visit(this); } SingleComparisonNode(final Type comparisonType, final String comparisonProperty,
            final Object comparisonValue); void accept(final PredicateVisitor predicateVisitor);  }
@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); }