private void assertNamedCacheFile(EmbeddedCacheManager cm, boolean deprecated) {
final GlobalConfiguration gc = cm.getCacheManagerConfiguration();
assert gc.asyncListenerExecutor().factory() instanceof DefaultExecutorFactory;
assert gc.asyncListenerExecutor().properties().getProperty("maxThreads").equals("5");
assert gc.asyncListenerExecutor().properties().getProperty("threadNamePrefix").equals("AsyncListenerThread");
assert gc.asyncTransportExecutor().factory() instanceof DefaultExecutorFactory;
// Should be 25, but it's overriden by the test cache manager factory
assertEquals("6", gc.asyncTransportExecutor().properties().getProperty("maxThreads"));
assert gc.asyncTransportExecutor().properties().getProperty("threadNamePrefix").equals("AsyncSerializationThread");