public String getPassword() {
        if(StringUtils.isEmpty(password)) {
            if(this.isAnonymousLogin()) {
                return PreferencesFactory.get().getProperty("connection.login.anon.pass");
            }
        }
        return password;
    }
@Test
    public void testAnonymous() {
        Credentials c = new Credentials("anonymous", "");
        assertEquals("cyberduck@example.net", c.getPassword());
    }