private InvocableHandlerMethod getInvocable(Class<?>... argTypes) { Method method = ResolvableMethod.on(Handler.class).argTypes(argTypes).resolveMethod(); InvocableHandlerMethod handlerMethod = new InvocableHandlerMethod(new Handler(), method); handlerMethod.setHandlerMethodArgumentResolvers(this.composite); return handlerMethod; }