public long getAndSet(long newValue) {
        return getAndSetVal(newValue);
    }
@Test
    public void testGetAndSet() {
        PaddedAtomicLong counter = new PaddedAtomicLong(1);

        long result = counter.getAndSet(2);

        assertEquals(1, result);
        assertEquals(2, counter.get());
    }