* Test parsing of a request with an Attributes element with 2 Attribute elements
* @throws NamingException
*/
public void testRequestWithAttributes2Attribute() throws NamingException
{
Dsmlv2Parser parser = null;
try
{
parser = new Dsmlv2Parser();
parser.setInputFile( SearchRequestTest.class.getResource( "request_with_attributes_2_attribute.xml" )
.getFile() );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
SearchRequest searchRequest = ( SearchRequest ) parser.getBatchRequest().getCurrentRequest();
Attributes attributes = searchRequest.getAttributes();
assertEquals( 2, attributes.size() );