DefaultInstanceUpHandler extends AbstractHealthEventHandler<InstanceUp> implements InstanceUpHandler { @Override protected void doHandle(InstanceUp instanceUp) { doRealMarkUp(instanceUp); }    }
@Test public void testDoHandle() { RedisHealthCheckInstance instance = mock(RedisHealthCheckInstance.class); DefaultRedisInstanceInfo info = new DefaultRedisInstanceInfo("FAT", "cluster_shyin", "shard1", new HostPort("10.3.2.220", 6379), "FAT", ClusterType.ONE_WAY); when(instance.getRedisInstanceInfo()).thenReturn(info); handler.doHandle(new InstanceUp(instance)); sleep(10 * 1000); }