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