@Override
    public ExecuteContext doAfter(ExecuteContext context) {
        final Object result = context.getResult();
        if (result instanceof Boolean) {
            final boolean heartbeatResult = (Boolean) result;
            if (heartbeatResult) {
                RegisterContext.INSTANCE.compareAndSet(false, true);
            } else {
                RegisterContext.INSTANCE.compareAndSet(true, false);
            }
        }
        return context;
    }
@Test
    public void doAfter() throws NoSuchMethodException {
        final ExecuteContext context = buildContext();
        context.changeResult(true);
        interceptor.doAfter(context);
        Assert.assertTrue(RegisterContext.INSTANCE.isAvailable());
        context.changeResult(false);
        interceptor.doAfter(context);
        Assert.assertFalse(RegisterContext.INSTANCE.isAvailable());
    }