FilterConfigController extends BaseController { @RequestMapping(path = "", method = RequestMethod.GET) public String index(final Model model) { setupBreadCrumbs(model, null, null); final Iterable<Filter> filterList = filterRepository.findAllByOrderByNameAsc(); model.addAttribute("filters", filterList); return "configuration/filter/index"; }  @RequestMapping(path = "", method = RequestMethod.GET) String index(final Model model); @RequestMapping(path = "/create", method = RequestMethod.GET) String createFilter(final FilterForm filterForm, final Model model); @RequestMapping(path = "/edit/{id}", method = RequestMethod.GET) String editFilter(
        @PathVariable final Long id,
        final FilterForm filterForm,
        final Model model,
        final RedirectAttributes redirectAttributes); @RequestMapping(path = "/update", method = RequestMethod.POST) String update(
        @Valid final FilterForm filterForm,
        final BindingResult bindingResult,
        final RedirectAttributes redirectAttributes); @RequestMapping(path = "/delete/{id}", method = RequestMethod.POST) String delete(@PathVariable final Long id, final RedirectAttributes redirectAttributes);  }
@Test @Transactional public void testIndex() throws Exception { final Filter filter1 = filterTestTools.createFilter("Filter1"); final Filter filter2 = filterTestTools.createFilter("Filter2"); mockMvc .perform(get("/configuration/filter").with(user(adminUserDetails))) .andExpect(status().isOk()) .andExpect(content().string(containsString(filter1.getName()))) .andExpect(content().string(containsString(filter1.getClasspath()))) .andExpect(content().string(containsString(filter2.getName()))) .andExpect(content().string(containsString(filter2.getClasspath()))); }