@Test
void testGetAndDecrement() {

    int init = 10;
    int min = 5;
    AtomicInteger integer = new AtomicInteger(init);
    for (int i = init; i > 0; i--) {
        Atomics.getAndDecrement(integer, min);
    }
    assertEquals(min, integer.get());
}