         )
       )
 
-      it('produces no errors, one warning, no transactions', ->
-        assert.jsonSchema(compilationResult, schema)
+      it('produces one annotation, no transactions', ->
+        assert.jsonSchema(compilationResult, createCompilationResultSchema(
+          annotations: 1
+          transactions: 0
+        ))
       )
       it('produces warning about falling back to API Blueprint', ->
+        assert.equal(compilationResult.annotations[0].type, 'warning')
         assert.include(
-          JSON.stringify(compilationResult.warnings),
+          compilationResult.annotations[0].message,
           'to API Blueprint'
         )
       )

    err = undefined
    error = new Error('... dummy message ...')
    compilationResult = undefined
    schema = createCompilationResultSchema(
      errors: 1
      warnings: 0
      transactions: 0
    )

    beforeEach((done) ->
      dt = proxyquire('../../src/index',

        )
      )

      it('produces no annotations, some transactions', ->
        assert.jsonSchema(compilationResult, createCompilationResultSchema(
          annotations: 0
          transactions: true
        ))
      )
    )
  )

  describe('When parser unexpectedly provides just error and no API Elements', ->
    compilationResult = undefined
    source = '... dummy API description document ...'
    message = '... dummy error message ...'

