* Test parsing of a request with derefAliases attribute to neverDerefAliases value
* @throws NamingException
*/
public void testRequestWithDerefAliasesNeverDerefAliases()
{
Dsmlv2Parser parser = null;
try
{
parser = new Dsmlv2Parser();
parser.setInputFile( SearchRequestTest.class
.getResource( "request_with_derefAliases_neverDerefAliases.xml" ).getFile() );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest();
assertEquals( LdapConstants.NEVER_DEREF_ALIASES, searchRequest.getDerefAliases() );
}