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