SecondaryStoreCache implements DocumentNodeStateCache, SecondaryStoreRootObserver { @Override public boolean isCached(Path path) { return pathFilter.filter(path.toString()) == PathFilter.Result.INCLUDE; } SecondaryStoreCache(NodeStore nodeStore, NodeStateDiffer differ, PathFilter pathFilter,
                               StatisticsProvider statisticsProvider); @Nullable @Override AbstractDocumentNodeState getDocumentNodeState(Path path, RevisionVector rootRevision,
                                                          RevisionVector lastRev); @Override boolean isCached(Path path); @Override void contentChanged(@NotNull AbstractDocumentNodeState root);  }
@Test public void isCached() throws Exception{ SecondaryStoreCache cache = createCache(new PathFilter(of("/a"), empty)); assertTrue(cache.isCached(Path.fromString("/a"))); assertTrue(cache.isCached(Path.fromString("/a/b"))); assertFalse(cache.isCached(Path.fromString("/x"))); }