public static CredentialsConfigurator get(final Protocol protocol) {
        final CredentialsConfigurator finder = protocol.getFeature(CredentialsConfigurator.class);
        try {
            return finder.reload();
        }
        catch(LoginCanceledException e) {
            if(log.isWarnEnabled()) {
                log.warn(String.format("Failure %s reloading credentials from %s", e, finder));
            }
            return CredentialsConfigurator.DISABLED;
        }
    }
@Test
    public void testGet() {
        final Host host = new Host(new TestProtocol());
        final Credentials credentials = host.getCredentials();
        assertSame(credentials, CredentialsConfiguratorFactory.get(new TestProtocol()).configure(host));
    }