@Test
void testSimple() {

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