CacheControllerHolder { @Nonnull public CacheController getMetadataCacheController() { return checkNotNull(controllers.get(METADATA)); } CacheControllerHolder(final CacheController contentCacheController,
                               final CacheController metadataCacheController); @Nonnull CacheController getContentCacheController(); @Nonnull CacheController getMetadataCacheController(); @Nullable CacheController get(final CacheType cacheType); CacheController require(final CacheType cacheType); @Nullable CacheController set(final CacheType cacheType, @Nullable final CacheController cacheController); void invalidateCaches(); static final CacheType CONTENT; static final CacheType METADATA; }
@Test public void testGetMetadataCacheController() { assertThat(underTest.getMetadataCacheController(), is(metadataCacheController)); }