LocaleController { @GetMapping(params = "all") public List<DomainLocale> supported(@RequestParam("all") boolean all) { return localeService.support(all); }  @GetMapping("current") DomainLocale current(@Nullable Locale requestLocale); @GetMapping("{id}") DomainLocale findOne(@PathVariable("id") String name,
            @RequestParam(value = "support", required = false, defaultValue = "false") boolean support); @GetMapping List<DomainLocale> findAll(); @GetMapping(params = "all") List<DomainLocale> supported(@RequestParam("all") boolean all);  }
@Test public void testSupported() throws Exception { log.info("supported"); boolean all = false; MvcResult result = mvc.perform(get("/api/locales.json").param("all", Boolean.toString(all))) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)) .andReturn(); }