### Question:
ServerConfiguration { @Bean public Server server(){ Server server = new Server(); if(server.getPort()==0){ int nonSecurePort = Integer.valueOf(propertyResolver.getProperty("server.port", propertyResolver.getProperty("port", "8080"))); server.setPort(nonSecurePort); } return server; } ServerConfiguration(ConfigurableEnvironment env); @Bean(name="loadMasterBalance") LoadBalance consistentHashLoadBalance(); @Bean(name="loadSlaveBalance") LoadBalance roundRobinLoadBalance(); @Bean RedisServerMasterCluster redisServerMasterCluster(RedisProxyConfiguration redisProxyConfiguration, @Qualifier("loadMasterBalance") LoadBalance loadMasterBalance, @Qualifier("loadSlaveBalance") LoadBalance loadSlaveBalance); @Bean Server server(); @Bean @ConditionalOnMissingBean(value = EurekaInstanceConfig.class, search = SearchStrategy.CURRENT) EurekaInstanceConfigBean eurekaInstanceConfigBean(InetUtils inetUtils,Server server);  }### Answer:
@Test public void server() { assertNotNull(server); assertEquals(8092,server.getPort()); assertEquals(10,server.getHeartTime()); assertEquals(1000,server.getMaxCount()); assertEquals("127.0.0.1",server.getIp()); assertEquals("dev",server.getTag()); assertEquals("redisProxy",server.getServiceId()); assertEquals("dev",server.getTag()); }