@Override
    public boolean compareAndSet(long expect, long update) {
        return get(compareAndSetAsync(expect, update));
    }
@Test
    public void testCompareAndSet() {
        RAtomicLong al = redisson.getAtomicLong("test");
        Assertions.assertFalse(al.compareAndSet(-1, 2));
        Assertions.assertEquals(0, al.get());
        Assertions.assertTrue(al.compareAndSet(0, 2));
        Assertions.assertEquals(2, al.get());
    }