@Test
void testCompareAndSet() {

    AtomicBiInteger abi = new AtomicBiInteger();
    assertEquals(0, abi.getHi());
    assertEquals(0, abi.getLo());
    assertFalse(abi.compareAndSetHi(1, 42));
    assertTrue(abi.compareAndSetHi(0, 42));
    assertEquals(42, abi.getHi());
    assertEquals(0, abi.getLo());
    assertFalse(abi.compareAndSetLo(1, -42));
    assertTrue(abi.compareAndSetLo(0, -42));
    assertEquals(42, abi.getHi());
    assertEquals(-42, abi.getLo());
}