checkIndexPresence(cache2);
}
private void checkIndexPresence(Cache cache) {
SearchFactoryImplementor searchFactory = (SearchFactoryImplementor) Search.getSearchManager(cache).getSearchFactory();
IndexManagerHolder indexManagerHolder = searchFactory.getIndexManagerHolder();
assertTrue(searchFactory.getIndexedTypes().contains(getModelFactory().getUserImplClass()));
assertNotNull(indexManagerHolder.getIndexManager(getModelFactory().getUserImplClass().getName()));
assertTrue(searchFactory.getIndexedTypes().contains(getModelFactory().getAccountImplClass()));
assertNotNull(indexManagerHolder.getIndexManager(getModelFactory().getAccountImplClass().getName()));
assertTrue(searchFactory.getIndexedTypes().contains(getModelFactory().getTransactionImplClass()));
assertNotNull(indexManagerHolder.getIndexManager(getModelFactory().getTransactionImplClass().getName()));
assertFalse(searchFactory.getIndexedTypes().contains(getModelFactory().getAddressImplClass()));
assertNull(indexManagerHolder.getIndexManager(getModelFactory().getAddressImplClass().getName()));
}