### Question:
LambdaInfoApiHandler implements RequestHandler<Map<String, Object>, ApiGatewayResponse> { @Override public ApiGatewayResponse handleRequest(Map<String, Object> input, Context context) { LOG.info("received: " + input); return new ApiGatewayResponse.ApiGatewayResponseBuilder<LambdaInfo>() .headers(headers()) .statusCode(SUCCESS_STATUS_CODE) .body(lambdaInfo(context)) .build(); }  @Override ApiGatewayResponse handleRequest(Map<String, Object> input, Context context);  }### Answer:
@Test public void handleRequestWithMockContext() { var lambdaInfoApiHandler = new LambdaInfoApiHandler(); var context = mock(Context.class); when(context.getAwsRequestId()).thenReturn("mock aws request id"); assertThat(lambdaInfoApiHandler.handleRequest(null, context), notNullValue()); }