@Override
    public <T extends Number> T incrementAndGet(String path, T delta) {
        return get(incrementAndGetAsync(path, delta));
    }
@Test
    public void testIncrementAndGet() {
        RJsonBucket<TestType> al = redisson.getJsonBucket("test", new JacksonCodec<>(TestType.class));
        TestType t = new TestType();
        NestedType nt = new NestedType();
        nt.setValue2(new BigDecimal(1));
        nt.setValue(1);
        nt.setValues(Arrays.asList("t1", "t2", "t4", "t5", "t6"));
        t.setType(nt);
        t.setName("name1");
        al.set(t);

        Integer s = al.incrementAndGet("type.value", 1);
        assertThat(s).isEqualTo(2);

        BigDecimal s2 = al.incrementAndGet("type.value2", new BigDecimal(1));
        assertThat(s2).isEqualTo(new BigDecimal(2));
    }