@Override
    public ExecuteContext doAfter(ExecuteContext context) {
        final Object result = context.getResult();
        if (result instanceof Boolean) {
            boolean health = (boolean) result;
            if (health) {
                RegisterContext.INSTANCE.compareAndSet(false, true);
                LOGGER.info("Nacos registry center recover healthy status!");
            } else {
                RegisterContext.INSTANCE.compareAndSet(true, false);
                LOGGER.info("Nacos registry center may be unhealthy!");
            }
        }
        return context;
    }
@Test
    public void doAfter() throws NoSuchMethodException {
        final NacosRpcClientHealthInterceptor interceptor = new NacosRpcClientHealthInterceptor();
        final ExecuteContext context = buildContext(new Object());
        interceptor.doAfter(context);
        Assert.assertFalse(context.isSkip());
        final ExecuteContext context1 = buildContext(new Object());
        context1.changeResult(Boolean.FALSE);
        interceptor.doAfter(context1);
        Assert.assertFalse(RegisterContext.INSTANCE.isAvailable());
        final ExecuteContext context2 = buildContext(new Object());
        context2.changeResult(Boolean.TRUE);
        interceptor.doAfter(context2);
        Assert.assertTrue(RegisterContext.INSTANCE.isAvailable());
    }