private ApplicationContext context;
@Test
@SuppressWarnings("deprecation")
public void testBasicCacheServer() throws Exception {
CacheServer cacheServer = context.getBean("advanced-config", CacheServer.class);
assertNotNull(cacheServer);
assertEquals(1, cacheServer.getGroups().length);
assertEquals("localhost", cacheServer.getBindAddress());
assertTrue(cacheServer.getPort() != 0);
assertEquals("localhost", cacheServer.getHostnameForClients());
assertEquals("test-server", cacheServer.getGroups()[0]);
assertEquals(2000l, cacheServer.getLoadPollInterval());
assertEquals(22, cacheServer.getMaxConnections());
assertEquals(16, cacheServer.getMaxThreads());
assertEquals(1000, cacheServer.getMaximumMessageCount());
assertEquals(30000, cacheServer.getMaximumTimeBetweenPings());
assertTrue(cacheServer.isRunning());
ClientSubscriptionConfig clientSubscriptionConfig = cacheServer.getClientSubscriptionConfig();
assertNotNull(clientSubscriptionConfig);
assertEquals(1000, clientSubscriptionConfig.getCapacity());
assertTrue("ENTRY".equalsIgnoreCase(clientSubscriptionConfig.getEvictionPolicy()));
assertTrue(String.format("Expected empty DiskStoreName; but was (%1$s)", clientSubscriptionConfig.getDiskStoreName()),