             (err, res, body) ->
                 res.statusCode.should.equal 400
                 res.body.error.should.equal "Bad request: body is incomplete"
-                done()
-
-        it 'should return an error when the req structure is incorrect: preToken
-        is missing or empty', (done) ->
-            data = _.cloneDeep answer
-            data.preToken = ''
-            client.post "services/sharing/sendAnswer/", data,
-            (err, res, body) ->
-                res.statusCode.should.equal 400
-                res.body.error.should.equal "Bad request: body is incomplete"
-                done()
-
-        it 'should return an error when the req structure is incorrect: url is
-        missing or empty', (done) ->
-            data = _.cloneDeep answer
-            data.recipientUrl = null
-            client.post "services/sharing/sendAnswer/", data,
-            (err, res, body) ->
-                res.statusCode.should.equal 400
-                res.body.error.should.equal "Bad request: body is incomplete"
-                done()
-
-        it 'should return an error when the req structure is incorrect:
-        sharerUrl is missing or empty', (done) ->
-            data = _.cloneDeep answer
-            data.sharerUrl = null
-            client.post "services/sharing/sendAnswer/", data,
-            (err, res, body) ->
-                res.statusCode.should.equal 400
-                res.body.error.should.equal "Bad request: body is incomplete"
-                done()
-
-        it 'should return an error when the req structure is incorrect: rules is
-        missing or empty', (done) ->
-            data = _.cloneDeep answer
-            data.rules = []
-            client.post "services/sharing/sendAnswer/", data,
-            (err, res, body) ->
-                res.statusCode.should.equal 400
-                res.body.error.should.equal "Bad request: body is incomplete"
-                done()
-
-        it 'should return an error when the req structure is incorrect: a rule
-        is missing an id', (done) ->
-            data = _.cloneDeep answer
-            data.rules = [{id: 1, docType: 'event'},{id: '', docType: 'event'}]
-            client.post "services/sharing/sendAnswer/", data,
-            (err, res, body) ->
-                res.statusCode.should.equal 400
-                res.body.error.should.equal "Bad request: incorrect rule
-                    detected"
-                done()
-
-        it 'should return an error when the req structure is incorrect: a rule
-        is missing a docType', (done) ->
-            data = _.cloneDeep answer
-            data.rules = [{id: 1, docType: 'event'},{id: 2}]
-            client.post "services/sharing/sendAnswer/", data,
-            (err, res, body) ->
-                res.statusCode.should.equal 400
-                res.body.error.should.equal "Bad request: incorrect rule
-                    detected"
                 done()
 
         it 'should return an error when addAccess failed', (done) ->


        # We stub the `notifyRecipient` module to avoid calling it (if so it would
        # try to request the url we declare in the share object).
        stubFn = (route, request, callback) ->
            spyRoute   = route
            spyRequest = request
            callback null # to mimick success

            # remove previously defined stub...
            notifyStub.restore()
            # ... and generate a new one that mimicks failure
            stubFn = (url, route, request, callback) ->
                callback "Error" # to mimick failure we return something
            notifyStub = sinon.stub Sharing, "notifyRecipient", stubFn

