@Test
public void testResource() throws NoSuchMethodException, SecurityException {
IndexController controller = new IndexController();
Resource resource = new Resource("utf-8");
ControllerMetaInfo cm = new ControllerMetaInfo(controller,
IndexController.class.getMethod("index4", HttpServletRequest.class, HttpServletResponse.class));
resource.add("/user/id-?-?", cm);
resource.add("/user/id-?-?/?", cm);
resource.add("/user/add", cm);