@Override
    protected ExecuteContext doBefore(ExecuteContext context) {
        final Object balancer = context.getObject();
        if (balancer instanceof DynamicServerListLoadBalancer) {
            DynamicServerListLoadBalancer<?> dynamicServerListLoadBalancer =
                    (DynamicServerListLoadBalancer<?>) balancer;
            GraceContext.INSTANCE.getGraceShutDownManager()
                    .getLoadBalancerCache().put(dynamicServerListLoadBalancer.getName(), balancer);
        }
        return context;
    }
@Test
    public void doBefore() throws NoSuchMethodException {
        try (final MockedStatic<PluginConfigManager> pluginConfigManagerMockedStatic = Mockito
                .mockStatic(PluginConfigManager.class)) {
            pluginConfigManagerMockedStatic.when(() -> PluginConfigManager.getPluginConfig(GraceConfig.class))
                    .thenReturn(new GraceConfig());
            MockitoAnnotations.openMocks(this);
            final SpringRibbonBalancerInterceptor interceptor = new SpringRibbonBalancerInterceptor();
            interceptor.doBefore(buildContext());
            Assert.assertEquals(GraceContext.INSTANCE.getGraceShutDownManager().getLoadBalancerCache().get(lbName), balancer);
        }

    }