final CountDownLatch v1Latch = new CountDownLatch(1);
final CountDownLatch v2Latch = new CountDownLatch(1);
final CountDownLatch endLatch = new CountDownLatch(1);
DummyInMemoryStore underlying = new DummyInMemoryStore();
writer = new MockAsyncCacheWriter(key, v1Latch, v2Latch, endLatch, underlying);
DummyInMemoryStoreConfigurationBuilder dummyCfg = TestCacheManagerFactory
.getDefaultCacheConfiguration(false)
.persistence().addStore(DummyInMemoryStoreConfigurationBuilder.class)
.storeName(m.getName());
DummyInitializationContext ctx = new DummyInitializationContext(dummyCfg.create(), getCache(), marshaller(),
new ByteBufferFactoryImpl(),
new MarshalledEntryFactoryImpl(marshaller()));
writer.init(ctx);
writer.start();
underlying.init(ctx);