public boolean validate(final Protocol protocol, final LoginOptions options) {
        return protocol.validate(this, options);
    }
@Test
    public void testLoginAnonymous2() {
        Credentials credentials = new Credentials(PreferencesFactory.get().getProperty("connection.login.anon.name"),
                null);
        assertTrue(credentials.validate(new TestProtocol(Scheme.ftp), new LoginOptions()));
    }