@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        final RedisConfigProperties that = (RedisConfigProperties) o;
        return Objects.equals(database, that.database)
                && Objects.equals(master, that.master)
                && Objects.equals(mode, that.mode)
                && Objects.equals(url, that.url)
                && Objects.equals(password, that.password)
                && Objects.equals(maxIdle, that.maxIdle)
                && Objects.equals(minIdle, that.minIdle)
                && Objects.equals(maxActive, that.maxActive)
                && Objects.equals(maxWait, that.maxWait);
    }
@Test
    public void equalsTest() {
        RedisConfigProperties defaultConfig = new RedisConfigProperties();
        assertEquals(defaultConfig, this.redisConfigProperties);
        defaultConfig.setMaster("master");
        defaultConfig.setDatabase(2);
        defaultConfig.setPassword("password");
        defaultConfig.setMaxIdle(30);
        defaultConfig.setMinIdle(10);
        defaultConfig.setMaxActive(100);
        defaultConfig.setMaxWait(-1);
        defaultConfig.setUrl("url");
        defaultConfig.setMode("mode");
        RedisConfigProperties defaultConfig2 = new RedisConfigProperties();
        defaultConfig2.setMaster("master");
        defaultConfig2.setDatabase(2);
        defaultConfig2.setPassword("password");
        defaultConfig2.setMaxIdle(30);
        defaultConfig2.setMinIdle(10);
        defaultConfig2.setMaxActive(100);
        defaultConfig2.setMaxWait(-1);
        defaultConfig2.setUrl("url");
        defaultConfig2.setMode("mode");
        assertNotEquals(defaultConfig, this.redisConfigProperties);
        assertEquals(defaultConfig, defaultConfig2);
        assertEquals(defaultConfig, defaultConfig);
        assertNotEquals(defaultConfig, "String");
        assertNotEquals(defaultConfig, null);
        assertEquals(defaultConfig.getMaster(), "master");
        assertTrue(defaultConfig.hashCode() != 0);
    }