@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ConsulConfig that = (ConsulConfig) o;
        return waitTime == that.waitTime
                && watchDelay == that.watchDelay
                && Objects.equals(url, that.url);
    }
@Test
    public void testEquals() {
        assertEquals(consulConfig, consulConfig);
        assertEquals(consulConfig, that);
        assertNotEquals(consulConfig, null);
        assertNotEquals(consulConfig, new Object());
    }