@Test
    void testHeaders() throws ParseException {
        EcrExtendedAuth eea = new EcrExtendedAuth(logger, "123456789012.dkr.ecr.eu-west-1.amazonaws.com");
        AuthConfig localCredentials = new AuthConfig("username", "password", null, null);
        Date signingTime = AwsSigner4Request.TIME_FORMAT.parse("20161217T211058Z");
        HttpPost request = eea.createSignedRequest(localCredentials, signingTime);
        Assertions.assertEquals("api.ecr.eu-west-1.amazonaws.com", request.getFirstHeader("host").getValue());
        Assertions.assertEquals("20161217T211058Z", request.getFirstHeader("X-Amz-Date").getValue());
        Assertions.assertEquals("AWS4-HMAC-SHA256 Credential=username/20161217/eu-west-1/ecr/aws4_request, SignedHeaders=content-type;host;x-amz-target, Signature=2ae11d499499cc951900aac0fbec96009382ba4f735bd14baa375c3e51d50aa9", request.getFirstHeader("Authorization").getValue());
    }
Test exchange of local stored credentials for temporary ecr credentials

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