@Test
public void testSecureActionSuccessfully() throws Exception {

    String cred = "OkCredential";
    Person expect = new Person();
    expect.name = cred;
    expect.age = 10;
    AwsProxyRequest req = new AwsProxyRequestBuilder(requestJsonStream)
            .resourcePath("/test_secure_action")
            .httpMethod("GET")
            .header("Authorization", cred)
            .build();
    AwsProxyResponse res = router.apply(req, mockContext);
    assertEquals(200, res.getStatusCode());
    assertThat(res.getHeaders(), hasEntry(CONTENT_TYPE, APPLICATION_JSON));
    assertThat(JsonUtils.readValue(res.getBody(), Person.class), equalTo(expect));
    assertFalse(res.isBase64Encoded());
}