public class ConsistentHashFactoryTest {
public void testPropertyCorrectlyRead() {
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.consistentHashImpl(1, SomeCustomConsistentHashV1.class);
ConsistentHashFactory chf = new ConsistentHashFactory();
chf.init(builder.build());
ConsistentHash hash = chf.newConsistentHash(1);
assertNotNull(hash);
assertEquals(hash.getClass(), SomeCustomConsistentHashV1.class);
}