       ajaxRequest = false
 
       simulatedAjaxResponse = [{
+        interface_type: 'mocked_nominal',
         payload: {
           label: 'mockedlabel',
           content: 'mockedcontent',


    it('will load new documents if the buffer is empty', ->
      expect(@manager.documentStore.length).toBe 1
      documentPayload = @manager.next()
      @manager.currentDocument = undefined
      expect(@manager.documentStore.length).toBe 0


  describe 'requestNextDocumentPayload', ->
    it('is equal as the manager\'s currentDocument payload', ->
      expect(@manager.documentStore.length).toBe 1
      nextDocumentDefinition = @manager.next()
      expect(nextDocumentDefinition).toBeDefined()

      interfaceType = Object.keys(nextDocumentDefinition)[0]
      expect(interfaceType).toBeDefined()
      expect(interfaceType).toBe 'text_nominal'

      documentPayload = nextDocumentDefinition[interfaceType]
      expect(documentPayload).toBeDefined()
      expect(@manager.currentDocument.payload).toBe documentPayload
    )

