@Override
    public boolean equals(Object o) {
        return this == o
                || o != null
                        && o.getClass() == WatermarkStatus.class
                        && ((WatermarkStatus) o).status == this.status;
    }
@Test
    void testEquals() {
        WatermarkStatus idleStatus = new WatermarkStatus(WatermarkStatus.IDLE_STATUS);
        WatermarkStatus activeStatus = new WatermarkStatus(WatermarkStatus.ACTIVE_STATUS);

        assertThat(idleStatus).isEqualTo(WatermarkStatus.IDLE);
        assertThat(idleStatus.isIdle()).isTrue();
        assertThat(idleStatus.isActive()).isFalse();

        assertThat(activeStatus).isEqualTo(WatermarkStatus.ACTIVE);
        assertThat(activeStatus.isActive()).isTrue();
        assertThat(activeStatus.isIdle()).isFalse();
    }