title: Amazon Kinesis + Integration Tests
body: <p>I'm currently working on a series of web-services which we need to integrate with Kinesis - the implementation has been done, however we have a series of integration tests (our web-services are all using Spring Boot so we use the <code>@WebIntegrationTest</code> annotation on our test classes to start up a local instance of the server and then call our resources with a <code>TestRestTemplate</code>) which are currently trying and failing to connect to the real Kinesis.</p>
  
  <p>Although in ordinary unit tests it's not a problem to mock out calls to the methods within the Kinesis library, we can't really do this in the integration tests as the whole application stack is wired up with Spring. For a few other things (such as OAuth2 and calls to our other web-services) we've been able to use WireMock to mock out the actual endpoints - what I'd really like to do is use WireMock in this fashion to mock out the call to the <code>AmazonKinesisClient</code> but I can't find any advice on how to do this.</p>
  
  <p>Alternatively I have seen that some AWS components have test libraries written by third parties which allow you to run a local version of it (e.g.: DynamoDbLocal) but can't find such a solution for Kinesis.</p>
  
  <p>Is anyone able to give me some advice on how to run integration tests with Kinesis?</p>