def METHOD_NAME(self, gatewaywrapper):
    """ tests the call to deleteObjects with dryRun using wait"""
    ns = 'testDeleteObjects-'+str(time.time())
    gatewaywrapper.loginAsAuthor()
    ids = self._prepareObjectsToDelete(gatewaywrapper.gateway, ns)
    gatewaywrapper.gateway.deleteObjects('Annotation', ids, dryRun=True,
                                         wait=True)
    q = gatewaywrapper.gateway.getQueryService()
    foundIds = [x.id.val for x in q.findAllByQuery(
        "from CommentAnnotation where ns='%s'" % ns, None)]
    assert set(ids) == set(foundIds)