@Test
    void includesAuthTokenAsAwsSecurityToken() {
        HttpUriRequest request = RequestUtil.newGet("https://someService.us-east-1.amazonaws.com/");
        request.setHeader("host", request.getURI().getHost());
        String awsSecurityToken = "securityToken";
        AuthConfig credentials = new AuthConfig("awsAccessKeyId", "awsSecretAccessKey", null, awsSecurityToken);

        AwsSigner4 signer = new AwsSigner4("us-east-1", "someService");
        signer.sign(request, credentials, new Date());

        Assertions.assertEquals(request.getFirstHeader("X-Amz-Security-Token").getValue(), awsSecurityToken);
    }
Test aws request signing

@author chas
@since 2016-12-21
src/test/java/io/fabric8/maven/docker/access/ecr/AwsSigner4RequestTest.java