@Test
public void testSet() {

    MappedAtomicInteger value = getRandomStoredInteger();
    int newValue = 0;
    while (newValue == 0 || newValue == value.get()) {
        newValue = Random.getInt();
    }
    value.set(newValue);
    for (int i = 0; i < Random.getScaleCount(); ++i) {
        Assert.assertEquals(newValue, value.get());
    }
}