LanguageController { @GetMapping public List<Language> findAll() { return languageMapper.findAll(); }  @GetMapping List<Language> findAll(); @PostMapping @ResponseStatus(HttpStatus.NO_CONTENT) void save(@RequestBody Language language); @GetMapping("{id}") Language findOne(@PathVariable("id") long id); @PutMapping("{id}") @ResponseStatus(HttpStatus.NO_CONTENT) void update(@PathVariable("id") long id, @RequestBody Language language); @DeleteMapping("{id}") @ResponseStatus(HttpStatus.NO_CONTENT) void delete(@PathVariable("id") long id);  }
@Test public void testFindAll() throws Exception { log.info("findAll"); MvcResult result = mvc.perform(get("/api/languages.json")) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)) .andReturn(); }