### Question:
ObjectCache { public void put(RevObject obj) { SharedCache cache = sharedCache.get(); CacheKey key = keyPrefix.create(obj.getId()); cache.put(key, obj); } ObjectCache(Supplier<SharedCache> cache, CacheIdentifier prefix); boolean contains(ObjectId id); void invalidateAll(); void invalidate(ObjectId id); void put(RevObject obj); @Nullable RevObject getIfPresent(ObjectId id);  }### Answer:
public @Test void testPut() { cache1.put(o1); cache2.put(o2); verify(mockSharedCache, times(1)).put(eq(k11), same(o1)); verify(mockSharedCache, times(1)).put(eq(k22), same(o2)); verifyNoMoreInteractions(mockSharedCache); }