         logStreamName: 'fake-stream'
       cloudwatchlogs.getLogEvents params, (err, data) ->
         assertError(err, 'ResourceNotFoundException')
+        matchError(err, 'The specified log group does not exist')
+        noData(data)
+        done()
+
+  describe 'AWS.CognitoIdentity', ->
+    it 'makes a request', (done) ->
+      cognitoidentity.listIdentityPools MaxResults: 10, (err, data) ->
+        noError(err)
+        expect(Array.isArray(data.IdentityPools)).to.equal(true)
+        done()
+
+    it 'handles errors', (done) ->
+      params =
+        IdentityPoolId: 'us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
+      cognitoidentity.describeIdentityPool params, (err, data) ->
+        assertError(err, 'ResourceNotFoundException')
+        matchError(err, 'IdentityPool \'us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\' not found')
         noData(data)
         done()
 

noError = (err) -> expect(err).to.equal(null)
noData = (data) -> expect(data).to.equal(null)
assertError = (err, code) -> expect(err.code).to.equal(code)

integrationTests = (fn) ->
  if config.accessKeyId and AWS.util.isBrowser()

        StateReason: 'xyz'
      cloudwatch.setAlarmState params, (err, data) ->
        assertError(err, 'ValidationError')
        matchError(err, 'failed to satisfy constraint')
        noData(data)
        done()

