 sharing      = rewire  "#{helpers.prefix}server/controllers/sharing"
 remoteAccess = require "#{helpers.prefix}server/lib/remote_access"
 
+# Proxy
 client = helpers.getClient()
-client.setBasicAuth "home", "token"
-
+
+# Connect to the Data-System with the credentials of the Proxy
 Client = require('request-json').JsonClient
 clientDS = new Client urlHelper.dataSystem.url()
+clientDS.setBasicAuth "proxy", "token"
 
 
 describe 'sharing unit tests', ->

            headers:
                authorization: "1:A ring to rule them all"

        stubIsSharingAuthenticated = {}

        before (done) ->
            stubIsSharingAuthenticated = sinon.stub remoteAccess,
                'isSharingAuthenticated', (header, callback) ->
                    callback false

            done()

        after (done) ->
            stubIsSharingAuthenticated.restore()
            done()



            done()


        it.skip 'When a successful authorized request is made then 200 is returned',
        (done) ->
            # since no error should be returned then there is no callback made
            sharing.revokeTarget req, res
