Infinispan implements Extension<InfinispanBucketBuilder> { public <K extends Serializable> ProxyManager<K> proxyManagerForMap(FunctionalMap.ReadWriteMap<K, GridBucketState> readWriteMap) { return new InfinispanProxyManager<>(readWriteMap); }  @Override InfinispanBucketBuilder builder(); ProxyManager<K> proxyManagerForMap(FunctionalMap.ReadWriteMap<K, GridBucketState> readWriteMap);  }
@Test(expected = IllegalArgumentException.class) @Override public void testThatImpossibleToPassNullCacheToProxyManagerConstructor() { Bucket4j.extension(getExtensionClass()).proxyManagerForMap(null); }