CachingContentStore implements ContentStore, ApplicationEventPublisherAware, BeanNameAware { @Override public void getUrls(ContentUrlHandler handler) throws ContentIOException { backingStore.getUrls(handler); } CachingContentStore();  CachingContentStore(ContentStore backingStore, ContentCache cache, boolean cacheOnInbound); void init(); @Override boolean isContentUrlSupported(String contentUrl); @Override boolean isWriteSupported(); @Override long getTotalSize(); @Override long getSpaceUsed(); @Override long getSpaceFree(); @Override long getSpaceTotal(); @Override String getRootLocation(); @Override boolean exists(String contentUrl); @Override ContentReader getReader(String contentUrl); @Override ContentWriter getWriter(final ContentContext context); @Override ContentWriter getWriter(ContentReader existingContentReader, String newContentUrl); @Override void getUrls(ContentUrlHandler handler); @Override void getUrls(Date createdAfter, Date createdBefore, ContentUrlHandler handler); @Override boolean delete(String contentUrl); ReentrantReadWriteLock readWriteLock(String url); @Required void setBackingStore(ContentStore backingStore); String getBackingStoreType(); String getBackingStoreDescription(); @Required void setCache(ContentCache cache); ContentCache getCache(); void setCacheOnInbound(boolean cacheOnInbound); boolean isCacheOnInbound(); int getMaxCacheTries(); void setMaxCacheTries(int maxCacheTries); @Required void setQuota(QuotaManagerStrategy quota); QuotaManagerStrategy getQuota(); @Override void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher); @Override void setBeanName(String name); String getBeanName();  }
@Test public void delegatedGetUrls1() { ContentUrlHandler handler = createDummyUrlHandler(); cachingStore.getUrls(handler); verify(backingStore).getUrls(handler); }
@Test public void delegatedGetUrls2() { ContentUrlHandler handler = createDummyUrlHandler(); Date after = new Date(123L); Date before = new Date(456L); cachingStore.getUrls(after, before, handler); verify(backingStore).getUrls(after, before, handler); }