ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
engine.processDSML( dsmlIn, byteOut );
Dsmlv2ResponseParser respParser = new Dsmlv2ResponseParser( LdapApiServiceFactory.getSingleton() );
respParser.setInput( byteOut.toString() );
respParser.parseAllResponses();
BatchResponseDsml batchResp = respParser.getBatchResponse();
assertNotNull( batchResp );
assertEquals( 101, batchResp.getRequestID() );