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