}
private void assertNamedCacheFile(EmbeddedCacheManager cm, boolean deprecated) {
final GlobalConfiguration gc = cm.getCacheManagerConfiguration();
BlockingThreadPoolExecutorFactory listenerThreadPool =
cm.getCacheManagerConfiguration().listenerThreadPool().threadPoolFactory();
assertEquals(5, listenerThreadPool.maxThreads());
assertEquals(10000, listenerThreadPool.queueLength());
DefaultThreadFactory listenerThreadFactory =
cm.getCacheManagerConfiguration().listenerThreadPool().threadFactory();
assertEquals("AsyncListenerThread", listenerThreadFactory.threadNamePattern());
BlockingThreadPoolExecutorFactory persistenceThreadPool =
cm.getCacheManagerConfiguration().persistenceThreadPool().threadPoolFactory();
assertEquals(6, persistenceThreadPool.maxThreads());
assertEquals(10001, persistenceThreadPool.queueLength());
DefaultThreadFactory persistenceThreadFactory =
cm.getCacheManagerConfiguration().persistenceThreadPool().threadFactory();
assertEquals("PersistenceThread", persistenceThreadFactory.threadNamePattern());
BlockingThreadPoolExecutorFactory transportThreadPool =
cm.getCacheManagerConfiguration().transport().transportThreadPool().threadPoolFactory();
assertEquals(TestCacheManagerFactory.MAX_ASYNC_EXEC_THREADS, transportThreadPool.maxThreads());
assertEquals(TestCacheManagerFactory.ASYNC_EXEC_QUEUE_SIZE, transportThreadPool.queueLength());
BlockingThreadPoolExecutorFactory remoteCommandThreadPool =
cm.getCacheManagerConfiguration().transport().remoteCommandThreadPool().threadPoolFactory();
assertEquals(TestCacheManagerFactory.MAX_REQ_EXEC_THREADS, remoteCommandThreadPool.maxThreads());
assertEquals(TestCacheManagerFactory.KEEP_ALIVE, remoteCommandThreadPool.keepAlive());
BlockingThreadPoolExecutorFactory totalOrderThreadPool =
cm.getCacheManagerConfiguration().transport().totalOrderThreadPool().threadPoolFactory();
assertEquals(16, totalOrderThreadPool.maxThreads());
assertEquals(1, totalOrderThreadPool.coreThreads());
assertEquals(1000, totalOrderThreadPool.keepAlive());
assertEquals(0, totalOrderThreadPool.queueLength());
DefaultThreadFactory totalOrderThreadFactory =
cm.getCacheManagerConfiguration().transport().totalOrderThreadPool().threadFactory();
assertEquals("TotalOrderValidatorThread", totalOrderThreadFactory.threadNamePattern());
DefaultThreadFactory evictionThreadFactory =