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