@Before
public void setUp() throws Exception {
resolver = new XPathParamMethodArgumentResolver();
Method supportedTypes = getClass()
.getMethod("supportedTypes", Boolean.TYPE, Double.TYPE, Node.class, NodeList.class, String.class);
booleanParameter = new MethodParameter(supportedTypes, 0);
doubleParameter = new MethodParameter(supportedTypes, 1);
nodeParameter = new MethodParameter(supportedTypes, 2);
nodeListParameter = new MethodParameter(supportedTypes, 3);
stringParameter = new MethodParameter(supportedTypes, 4);
convertedParameter = new MethodParameter(getClass().getMethod("convertedType", Integer.TYPE), 0);
unsupportedParameter = new MethodParameter(getClass().getMethod("unsupported", String.class), 0);
namespaceMethodParameter = new MethodParameter(getClass().getMethod("namespacesMethod", String.class), 0);
namespaceClassParameter = new MethodParameter(getClass().getMethod("namespacesClass", String.class), 0);
}