ExtractedTextCache { @Nullable public CacheStats getCacheStats() { return cacheStats; } ExtractedTextCache(long maxWeight, long expiryTimeInSecs);  ExtractedTextCache(long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                              File indexDir);  ExtractedTextCache(long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                              File indexDir, StatisticsProvider statisticsProvider); @Nullable String get(String nodePath, String propertyName, Blob blob, boolean reindexMode); void put(@NotNull Blob blob, @NotNull ExtractedText extractedText); void putTimeout(@NotNull Blob blob, @NotNull ExtractedText extractedText); void addStats(int count, long timeInMillis, long bytesRead, long textLength); StatisticsProvider getStatisticsProvider(); TextExtractionStatsMBean getStatsMBean(); @Nullable CacheStats getCacheStats(); void setExtractedTextProvider(PreExtractedTextProvider extractedTextProvider); PreExtractedTextProvider getExtractedTextProvider(); void resetCache(); boolean isAlwaysUsePreExtractedCache(); void close(); void process(String name, Callable<Void> callable); void setExtractionTimeoutMillis(int extractionTimeoutMillis);  }
@Test public void cacheDisabling() throws Exception { ExtractedTextCache cache = new ExtractedTextCache(0, 0); assertNull(cache.getCacheStats()); }