RiakKeyValueConfiguration implements KeyValueConfiguration { @Override public RiakBucketManagerFactory get() { if (nodes.isEmpty()) { nodes.add(DEFAULT_NODE); } RiakCluster cluster = new RiakCluster.Builder(nodes) .build(); return new RiakBucketManagerFactory(cluster); } RiakKeyValueConfiguration(); void add(RiakNode node); void add(String address); @Override RiakBucketManagerFactory get(); @Override RiakBucketManagerFactory get(Settings settings);  }
@Test public void shouldCreateKeyValueFactoryFromFile() { BucketManagerFactory managerFactory = configuration.get(); assertNotNull(managerFactory); }