private ScanResult<Object> entryScanIterator(RedisClient client, String startPos, String pattern, int count) {
        RFuture<ScanResult<Object>> f = entryScanIteratorAsync(client, startPos, pattern, count);
        return get(f);
    }
@Test
    public void testEntryScanIterator() {
        RScoredSortedSet<String> set = redisson.getScoredSortedSet("test");
        set.add(1.1, "v1");
        set.add(1.2, "v2");
        set.add(1.3, "v3");

        Iterator<ScoredEntry<String>> entries = set.entryIterator();
        assertThat(entries).toIterable().containsExactly(new ScoredEntry<>(1.1, "v1"),
                                                new ScoredEntry<>(1.2, "v2"), new ScoredEntry<>(1.3, "v3"));
    }