@Test
public void testHandleUserDefinedException() throws Exception {

    AwsProxyRequest req = new AwsProxyRequestBuilder(requestJsonStream)
            .resourcePath("/test_action_with_exceptionhandler")
            .httpMethod("GET")
            .build();
    AwsProxyResponse res = router.apply(req, mockContext);
    assertEquals(503, res.getStatusCode());
    assertThat(res.getHeaders(), hasEntry(CONTENT_TYPE, APPLICATION_JSON));
    TestErrorBody actual = JsonUtils.readValue(res.getBody(), TestErrorBody.class);
    assertEquals("Test Error Occur exception", actual.error);
    assertEquals("Test descrption", actual.description);
    assertFalse(res.isBase64Encoded());
}