@Test
public void testRouterActionRequestReadRequestError() throws Exception {

    // this request body occurs deserialize error
    String errorBody = "{\"aaa\": }";
    AwsProxyRequest req = new AwsProxyRequestBuilder(requestJsonStream)
            .resourcePath("/test_action2")
            .httpMethod("POST")
            .body(errorBody)
            .build();
    AwsProxyResponse res = router.apply(req, mockContext);
    assertEquals(400, res.getStatusCode());
    assertThat(res.getHeaders(), hasEntry(CONTENT_TYPE, APPLICATION_JSON));
    assertEquals(
            "{\"error\":\"Client Error\",\"description\":\"Unexpected exception during reading a request\"}",
            res.getBody());
    assertFalse(res.isBase64Encoded());
}