title: How to unit test aws lambda invokation?
body: <p>i have a aws lambda RequestHandler written in Java which invokes another aws lambda. To invoke the other lambda i wrote an Interface with methods annotaded by @LambdaFunction. To build an invoker I use:</p>
  
  <pre><code>LamdaInvoker lamdaInvoker = LambdaInvokerFactory.builder().lambdaClient(AWSLambdaClientBuilder.defaultClient()).build(LamdaInvoker.class);
  </code></pre>
  
  <p>When I run the JUnit tests without having deployed the lambda I get:</p>
  
  <pre><code>java.lang.IllegalArgumentException: No region provided
  </code></pre>
  
  <p>Is it possible to Mock the Invoker in the unit tests and how?</p>