* Test parsing of a request with a Substrings Filter with 1 Initial and 1 Final elements
*/
@Test
public void testRequestWithSubstrings1Initial1Final()
{
Dsmlv2Parser parser = null;
try
{
parser = newParser();
parser.setInput( SearchRequestTest.class.getResource(
"filters/request_with_substrings_1_initial_1_final.xml" ).openStream(), "UTF-8" );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest();
ExprNode filter = searchRequest.getFilter();
assertTrue( filter instanceof SubstringNode );