@Test
void testCallLimit2() {

    AtomicSequence atomicSequence = new AtomicSequence();
    assertThat(atomicSequence.next(2)).isEqualTo(0);
    assertThat(atomicSequence.next(2)).isEqualTo(1);
    assertThat(atomicSequence.next(2)).isEqualTo(0);
    assertThat(atomicSequence.next(2)).isEqualTo(1);
    assertThat(atomicSequence.next(2)).isEqualTo(0);
}