public final int getAndIncrement() {
        return atom.getAndIncrement() & MASK;
    }
@Test
    public void testGetAndIncrement() {
        PositiveAtomicCounter counter = new PositiveAtomicCounter();
        assertThat(counter.getAndIncrement()).isEqualTo(0);
    }