@Override
    public long arrayInsert(String path, long index, Object... values) {
        return get(arrayInsertAsync(path, index, values));
    }
@Test
    public void testArrayInsert() {
        RJsonBucket<TestType> al = redisson.getJsonBucket("test", new JacksonCodec<>(TestType.class));
        TestType t = new TestType();
        NestedType nt = new NestedType();
        nt.setValues(Arrays.asList("t1", "t2", "t4"));
        t.setType(nt);
        al.set(t);

        long s = al.arrayInsert("type.values", 2, "t3");
        assertThat(s).isEqualTo(4);

        List<Long> s1 = al.arrayInsertMulti("$.type.values", 3, "t5");
        assertThat(s1).containsExactly(5L);

        List<String> n = al.get(new JacksonCodec<>(new TypeReference<List<String>>() {}), "type.values");
        assertThat(n).containsExactly("t1", "t2", "t3", "t5", "t4");
    }