       uuid: 'sender-uuid'
       type: 'device:sender'
       token: bcrypt.hashSync @auth.token, 8
+      meshblu:
+        version: '2.0.0'
+        whitelists:
+          message:
+            sent: 'spy-uuid': {}
 
     @devices.insert @senderDevice, done
 

    @receiverDevice =
      uuid: 'receiver-uuid'
      type: 'device:receiver'
      sendWhitelist: [ 'sender-uuid' ]

    @devices.insert @receiverDevice, done

  context "When a device is subscribed to it's own sent whitelist", ->
    @timeout 5000
    beforeEach 'create message sent subscription', (done) ->
      subscription =
        type: 'message.sent'
        emitterUuid: 'sender-uuid'
        subscriberUuid: 'sender-uuid'

      @subscriptions.insert subscription, done

    beforeEach 'create message received subscription', (done) ->
      subscription =
        type: 'message.received'
        emitterUuid: 'sender-uuid'
        subscriberUuid: 'sender-uuid'

      @subscriptions.insert subscription, done

    context 'When sending a message to another device', ->
      beforeEach (done) ->
        job =
          metadata:

    client = new RedisNS 'meshblu-test', redis.createClient(@redisUri)
    client.del 'request:queue', done

  beforeEach 'create sender device', (done) ->
    @auth =
      uuid: 'sender-uuid'
