@Test
public void testComplexOrRefinement() throws Exception
{
ExprNode refinement = null;
ServerAttribute objectClasses = new DefaultServerAttribute( "objectClass", OBJECT_CLASS, "person" );
String refStr = "(|(objectClass=person)(objectClass=organizationalUnit))";
refinement = FilterParser.parse( refStr );
assertTrue( evaluator.evaluate( refinement, objectClasses ) );
objectClasses = new DefaultServerAttribute( "objectClass", OBJECT_CLASS, "organizationalUnit" );
assertTrue( evaluator.evaluate( refinement, objectClasses ) );
objectClasses = new DefaultServerAttribute( "objectClass", OBJECT_CLASS, "domain" );
assertFalse( evaluator.evaluate( refinement, objectClasses ) );
}