@Override
    public boolean isAddressReachable(String addr) {
        if (addr == null || addr.isEmpty()) {
            return false;
        }
        try {
            Channel channel = getAndCreateChannel(addr);
            return channel != null && channel.isActive();
        } catch (Exception e) {
            LOGGER.warn("Get and create channel of {} failed", addr, e);
            return false;
        }
    }
@Test
    public void testIsAddressReachableFail() throws NoSuchFieldException, IllegalAccessException {
        Bootstrap bootstrap = spy(Bootstrap.class);
        Field field = NettyRemotingClient.class.getDeclaredField("bootstrap");
        field.setAccessible(true);
        field.set(remotingClient, bootstrap);
        assertThat(remotingClient.isAddressReachable("0.0.0.0:8080")).isFalse();
        verify(bootstrap).connect(eq("0.0.0.0"), eq(8080));
        assertThat(remotingClient.isAddressReachable("[fe80::]:8080")).isFalse();
        verify(bootstrap).connect(eq("[fe80::]"), eq(8080));
    }