private AuthoritativeTier<String, String> newStore(Long capacity, EvictionAdvisor<String, String> evictionAdvisor, ExpiryPolicy<? super String, ? super String> expiry, TimeSource timeSource) {
Serializer<String> keySerializer = new JavaSerializer<>(getClass().getClassLoader());
Serializer<String> valueSerializer = new JavaSerializer<>(getClass().getClassLoader());
ResourcePools resourcePools = getOffHeapResourcePool(capacity);
SizedResourcePool offheapPool = resourcePools.getPoolForResource(OFFHEAP);
MemoryUnit unit = (MemoryUnit)offheapPool.getUnit();
Store.Configuration<String, String> config = new StoreConfigurationImpl<>(getKeyType(), getValueType(),
evictionAdvisor, getClass().getClassLoader(), expiry, resourcePools, 0, keySerializer, valueSerializer);
OffHeapStore<String, String> store = new OffHeapStore<>(config, timeSource, new TestStoreEventDispatcher<>(), unit
.toBytes(offheapPool.getSize()));
OffHeapStore.Provider.init(store);
return store;
}