         ], (err) ->
           chai.expect(err).to.not.exist
 
-          clients.sender.sendToQueue outQueue, payload, (err) ->
+          clients.sender.sendTo 'outqueue', outQueue, payload, (err) ->
             chai.expect(err).to.not.exist
             done()
 

sendPackets = (packets, callback) ->
  send = (p, cb) ->
    [client, queue, data] = p
    client.sendToQueue queue, data, cb

  async.map packets, send, callback



          clients.receiver.subscribeToQueue sharedQueue, onReceive, (err) ->
            chai.expect(err).to.be.a 'null'
          clients.sender.sendTo 'outqueue', sharedQueue, payload, (err) ->
            chai.expect(err).to.be.a 'null'


