public static int getNextSequence(final int currentSequence) {
        int nextSequence = currentSequence + 1;
        return nextSequence > MAX_SEQUENCE ? MIN_SEQUENCE : nextSequence;
    }
@Test
    void assertGetNextSequence() {
        int currentSequence = ConsistencyCheckSequence.MIN_SEQUENCE;
        assertThat(currentSequence = ConsistencyCheckSequence.getNextSequence(currentSequence), is(2));
        assertThat(currentSequence = ConsistencyCheckSequence.getNextSequence(currentSequence), is(3));
        assertThat(currentSequence = ConsistencyCheckSequence.getNextSequence(currentSequence), is(1));
    }