### Question:
TransactionCache { public int size() { return cacheSize; } TransactionCache(int cacheSize, int maxSerializedSize, boolean directAllocation, Meter cacheMissMeter); int size(); TransactionData get(TransactionKey key); void put(TransactionKey key, TransactionData data); void clear();  }### Answer:
@Test public void testCachingSmallSizedItems() { testCaching(cache.size() / 1000, MAX_DATA_SIZE / 2); }
@Test public void testCachingAllSizedItems() { testCaching(cache.size() / 1000, MAX_DATA_SIZE); }