cb.clustering().cacheMode(CacheMode.DIST_SYNC);
Configuration c = cb.build();
Assert.assertNull(c.clustering().hash().consistentHashFactory());
SyncConsistentHashFactory consistentHashFactory = new SyncConsistentHashFactory();
cb.clustering().hash().consistentHashFactory(consistentHashFactory);
c = cb.build();
Assert.assertSame(c.clustering().hash().consistentHashFactory(), consistentHashFactory);
}