@Override
    protected void close() {
        // Turn off nacos heartbeat transmission
        BeatInfo beatInfo = (BeatInfo) arguments[0];
        beatInfo.setStopped(true);
        LOGGER.warning("Nacos heartbeat has been closed by user.");
    }
@Test
    public void close() throws Exception {
        final BeatInfo beatInfo = new BeatInfo();
        final ExecuteContext context = buildContext(this, new Object[] {beatInfo});
        interceptor.doBefore(context);
        interceptor.close();
        Assert.assertTrue(beatInfo.isStopped());
    }