* @throws UnsupportedEncodingException
*/
@Test
public void testRequestWith1ModificationBase64Value() throws NamingException, UnsupportedEncodingException
{
Dsmlv2Parser parser = null;
try
{
parser = newParser();
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();
Collection<Modification> modifications = modifyRequest.getModifications();
assertEquals( 1, modifications.size() );
Modification modification = modifications.iterator().next();