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