catch ( Exception e )
{
fail( e.getMessage() );
}
SearchRequestDsml searchRequest = ( SearchRequestDsml ) parser.getBatchRequest().getCurrentRequest();
ExprNode filter = searchRequest.getFilter();
assertTrue( filter instanceof AndNode );
assertEquals( "(&(|(sn=*foo*)(cn=*foo*))(|(ou=*josopuram*)(o=*k*)))", filter.toString() );
System.out.println( searchRequest.toDsml( new DefaultElement( "root" ) ).asXML());
}