### Question:
HelloHandler implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> { @Override public APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent request, Context context) { String who = "World"; if ( request.getPathParameters() != null ) { String name = request.getPathParameters().get("name"); if ( name != null && !"".equals(name.trim()) ) { who = name; } } return new APIGatewayProxyResponseEvent().withStatusCode(HttpURLConnection.HTTP_OK).withBody(String.format("Hello %s!", who)); }  @Override APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent request, Context context);  }### Answer:
@Test public void handleRequest() { APIGatewayProxyResponseEvent res = handler.handleRequest(input, null); assertNotNull(res); assertEquals("Hello Universe!", res.getBody()); }
@Test public void handleEmptyRequest() { input.withPathParamters(Collections.emptyMap()); APIGatewayProxyResponseEvent res = handler.handleRequest(input, null); assertNotNull(res); assertEquals("Hello World!", res.getBody()); }