public void setTarget(final String hostname) {
        this.target.set(hostname);
    }
@Test
    public void testSetTarget() {
        assertEquals("s3.amazonaws.com",
                new ThreadLocalHostnameDelegatingTrustManager(new DisabledX509TrustManager(), "s3.amazonaws.com").getTarget());
        assertEquals("cyberduck.s3.amazonaws.com",
                new ThreadLocalHostnameDelegatingTrustManager(new DisabledX509TrustManager(), "cyberduck.s3.amazonaws.com").getTarget());
        assertEquals("cyber.duck.s3.amazonaws.com",
                new ThreadLocalHostnameDelegatingTrustManager(new DisabledX509TrustManager(), "cyber.duck.s3.amazonaws.com").getTarget());
    }