@Override
    public boolean trySetCapacity(int capacity) {
        return get(trySetCapacityAsync(capacity));
    }
@Test
    public void testNameMapper() {
        Config config = createConfig();
        config.useSingleServer()
                .setNameMapper(new NameMapper() {
                    @Override
                    public String map(String name) {
                        return name + ":suffix:";
                    }

                    @Override
                    public String unmap(String name) {
                        return name.replace(":suffix:", "");
                    }
                });

        RedissonClient redisson = Redisson.create(config);
        RBoundedBlockingQueue<Integer> queue = redisson.getBoundedBlockingQueue("bounded-queue");

        queue.trySetCapacity(5);
        queue.add(1);

        queue.delete();
        assertThat(redisson.getKeys().count()).isZero();
    }