MockMvcController { @RequestMapping("/get") String get(@RequestParam String method) { logger.info("method: {}", method); return SUCCESS; }    }
@Test public void testGet() throws Exception{ mockMvc.perform(get("/mock/get?method=testGet")) .andExpect(status().is(200)) .andExpect(content().string("success")); }