source: class CacheBuilderBaseTest  {
  
      private final ResourceMock var;
      private final ResourceMock rootCache;
      private final ResourceMock parentCache;
      private final PageMock pageCache;
      private final ResourceMock contentCache;
      private final ResourceMock resourceCache;
      private final CacheBuilderBase model;
      private final Map<Resource, Resource> buildCacheCalled;
      private final Set<String> rebuildImplCalled;
  
      @Test
      public void rebuild() {
  
target:         model.rebuild(jcrContent.getPath());
          verifyCommits(1);
          assertTrue(rebuildImplCalled.contains(jcrContent.getPath()));
          assertTrue(rebuildImplCalled.contains(page.getPath()));
          assertTrue(rebuildImplCalled.contains(parent.getPath()));
          assertTrue(rebuildImplCalled.contains(contentRoot.getPath()));
      }
  
  }