### Question:
ObjectCache { public void invalidate(ObjectId id) { sharedCache.get().invalidate(keyPrefix.create(id)); } 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 testInvalidate() { cache2.invalidate(o2.getId()); cache1.invalidate(o1.getId()); verify(mockSharedCache, times(1)).invalidate(eq(k22)); verify(mockSharedCache, times(1)).invalidate(eq(k11)); verifyNoMoreInteractions(mockSharedCache); }