### Question:
TransactionCacheStore implements MapStore<Long, Transaction>, MapLoaderLifecycleSupport { public int getStoredCount() { int count = bits.cardinality(); logger.trace("getStoredCount; returning: {}", count); return count; }  @Override void init(HazelcastInstance hazelcastInstance, Properties properties, String mapName); @Override void destroy(); int getStoredCount(); @Override Transaction load(Long key); @Override Map<Long, Transaction> loadAll(Collection<Long> keys); @Override Set<Long> loadAllKeys(); @Override void delete(Long key); @Override void deleteAll(Collection<Long> keys); @Override void store(Long key, Transaction value); @Override void storeAll(Map<Long, Transaction> entries);  }### Answer:
@Test public void bulkTransactionTest() throws Exception { int oldCount = txStore.getStoredCount(); int loops = 10; int thCount = 1; final CountDownLatch cdl = new CountDownLatch(thCount); for (int i=1; i <= thCount; i++) { Thread th = new Thread(new TransactionTest(i % 2 == 0, loops, cdl)); Thread.sleep(10); th.start(); } cdl.await(); int newCount = txStore.getStoredCount(); int expCount = oldCount; assertTrue("expected " + expCount + " but got " + newCount + " transactions", newCount == expCount); }