/**
* Test parsing of a request with a Substrings Filter with 1 Initial element with Base64 value
*/
public void testRequestWithSubstrings1Base64Initial()
{
Dsmlv2Parser parser = null;
try
{
parser = new Dsmlv2Parser();
parser.setInputFile( SearchRequestTest.class.getResource(
"filters/request_with_substrings_1_base64_initial.xml" ).getFile() );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest();
Filter filter = searchRequest.getFilter();
assertTrue( filter instanceof SubstringFilter );