@Override
    protected DAVClient connect(final ProxyFinder proxy, final HostKeyCallback key, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {
        final HttpClientBuilder configuration = this.getConfiguration(proxy, prompt);
        return new DAVClient(new HostUrlProvider().withUsername(false).get(host), configuration);
    }
@Test
    @Ignore
    public void testRedirectHttpsAlert() throws Exception {
        final Host host = new Host(new DAVProtocol(), "svn.cyberduck.io");
        final AtomicBoolean warning = new AtomicBoolean();
        final DAVSession session = new DAVSession(host, new DefaultX509TrustManager(),
                new KeychainX509KeyManager(new DisabledCertificateIdentityCallback(), host, new DisabledCertificateStore())) {
        };
        final LoginConnectionService c = new LoginConnectionService(
                new DisabledLoginCallback() {
                    @Override
                    public void warn(final Host bookmark, final String title, final String message, final String continueButton, final String disconnectButton, final String preference) {
                        assertEquals("Unsecured WebDAV (HTTP) connection", title);
                        assertEquals("connection.unsecure.svn.cyberduck.io", preference);
                        warning.set(true);
                    }
                },
                new DisabledHostKeyCallback(),
                new DisabledPasswordStore(),
                new DisabledProgressListener()
        );
        c.connect(session, new DisabledCancelCallback());
        assertTrue(warning.get());
        session.close();
    }