@Override
    public ExecuteContext before(ExecuteContext context) {
        Object object = context.getObject();
        if (object instanceof HandlerExecutionChain) {
            HandlerExecutionChain chain = (HandlerExecutionChain) object;
            chain.addInterceptor(getInterceptor());
        }
        return context;
    }
@Test
    public void testBefore() {
        interceptor.before(context);
        HandlerExecutionChain chain = (HandlerExecutionChain) context.getObject();
        Assert.assertNotNull(chain.getInterceptors());
        Assert.assertEquals(1, chain.getInterceptors().length);
        Assert.assertEquals(RouteHandlerInterceptor.class, chain.getInterceptors()[0].getClass());
    }