return createContext(cacheName, configuration, marshaller, AbstractInfinispanTest.TIME_SERVICE);
}
public static InitializationContext createContext(String cacheName, Configuration configuration, StreamingMarshaller marshaller, TimeService timeService) {
Cache mockCache = mockCache(cacheName, configuration, timeService);
return new InitializationContextImpl(configuration.persistence().stores().get(0), mockCache, marshaller,
timeService, new ByteBufferFactoryImpl(), new MarshalledEntryFactoryImpl(marshaller));
}