//And finally check we're running it in the same CacheManager:
Assert.assertTrue(extended.getDataCache().getCacheManager() == embeddedCacheManager);
}
private void verifyIndexWriterOptions(NRTIndexManager nrtIM, Integer expectedRAMBuffer, Integer expectedMaxMergeSize, Integer expectedMergeFactor) {
LuceneIndexingParameters indexingParameters = nrtIM.getIndexingParameters();
ParameterSet indexParameters = indexingParameters.getIndexParameters();
Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.RAM_BUFFER_SIZE), expectedRAMBuffer);
Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.MERGE_MAX_SIZE), expectedMaxMergeSize);
Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.MERGE_FACTOR), expectedMergeFactor);
}