catch ( Exception e )
{
fail( e.getMessage() );
}
SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest();
Filter filter = searchRequest.getFilter();
assertTrue( filter instanceof SubstringFilter );
SubstringFilter substringFilter = ( SubstringFilter ) filter;