         Image = _Image_
         $httpBackend = _$httpBackend_
         # The mock file URL.
-        url = '/static/' + mock.volume.filename
+        url = '/static/' + mock.volume.name
         # The mock http call.
         $httpBackend.whenGET(url).respond(mock.image.data)
         # The router getSessionDetail function creates the image object

          # parent session reference property.
          session:
            number: 1
        filename: 'path/to/volume001.nii.gz'

    # The mock Angular $http service provider.
    $httpBackend = null

      # The mock image file content.
      image:
        data: new Uint8Array(1)
      # The mock volume. The volume name comes from the database.
      # The router getSessionDetail function adds the volume number
      # and parent container reference properties. This is simulated
      # in the mock object.
