CachingContentStoreManagerImpl extends ContentStoreManagerImpl { @Override public Map<String, ContentStore> getContentStores() throws ContentStoreException { log.debug("enter: getContentStores()"); if (null == contentStores) { log.debug("populating cache."); this.contentStores = super.getContentStores(); } return this.contentStores; } CachingContentStoreManagerImpl(String host,
                                          String port,
                                          String context); @Override Map<String, ContentStore> getContentStores(); @Override ContentStore getPrimaryContentStore();  }
@Test public void testGetContentStores() throws Exception { contentStoreMgr.getContentStores(); contentStoreMgr.getContentStores(); EasyMock.verify(restHttpHelper); }