### Question:
CacheBuilderBase implements CacheBuilder { protected final Resource buildCache(final ResourceResolver resourceResolver, final Resource rootPage) { if (isNull(rootPage)) { return null; } try { final Resource cache = getOrCreateCacheResource(resourceResolver, rootPage); return buildCache(rootPage, cache); } catch (final PersistenceException e) { logger.error(COULD_NOT_SAVE_SITE_MAP_CACHE, e); return null; } }  final String getOriginalPath(final String cachePath); @Override final void rebuild(final String rootPagePath); @Override void rebuildAll();  }### Answer:
@Test public void buildCache() { final Resource cache = model.buildCache(jcrContent.getPath()); verifyCommits(1); assertEquals(contentCache, cache); assertEquals(contentCache, buildCacheCalled.get(jcrContent)); }