RedisConfiguration implements KeyValueConfiguration { public RedisBucketManagerFactory getManagerFactory(Map<String, String> configurations) { Objects.requireNonNull(configurations, "configurations is required"); SettingsBuilder builder = Settings.builder(); configurations.entrySet().forEach(e -> builder.put(e.getKey(), e.getValue())); return get(builder.build()); }  RedisBucketManagerFactory getManagerFactory(Map<String, String> configurations); RedisBucketManagerFactory get(JedisPool jedisPool); @Override RedisBucketManagerFactory get(); @Override RedisBucketManagerFactory get(Settings settings);  }
@Test public void shouldCreateKeyValueFactory() { Map<String, String> map = new HashMap<>(); map.put("redis-master-hoster", "localhost"); BucketManagerFactory managerFactory = configuration.getManagerFactory(map); assertNotNull(managerFactory); }