@Override
    public boolean equals(final Object o) {
        if(this == o) {
            return true;
        }
        if(o == null || getClass() != o.getClass()) {
            return false;
        }
        final LoginOptions that = (LoginOptions) o;
        return user == that.user &&
            password == that.password &&
            keychain == that.keychain &&
            publickey == that.publickey &&
            anonymous == that.anonymous &&
            Objects.equals(icon, that.icon);
    }
@Test
    public void testEquals() {
        assertEquals(new LoginOptions(), new LoginOptions());
        final LoginOptions a = new LoginOptions();
        a.keychain = false;
        final LoginOptions b = new LoginOptions();
        b.keychain = true;
        assertNotEquals(a, b);
    }