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