* @throws NamingException
* @throws UnsupportedEncodingException
*/
public void testRequestWith1ModificationBase64Value() throws NamingException, UnsupportedEncodingException
{
Dsmlv2Parser parser = null;
try
{
parser = new Dsmlv2Parser();
parser.setInput( ModifyRequestTest.class.getResource( "request_with_1_modification_base64_value.xml" )
.openStream(), "UTF-8" );
parser.parse();
}
catch ( Exception e )
{
fail( e.getMessage() );
}
ModifyRequest modifyRequest = ( ModifyRequest ) parser.getBatchRequest().getCurrentRequest();
assertEquals( LdapConstants.OPERATION_ADD, modifyRequest.getCurrentOperation() );
assertEquals( "directreport", modifyRequest.getCurrentAttributeType() );