@Test
void testGetAndIncrement() {

    int max = 10;
    AtomicInteger integer = new AtomicInteger(0);
    for (int i = 0; i < 20; i++) {
        Atomics.getAndIncrement(integer, max);
    }
    assertEquals(max, integer.get());
}