VersionController { @GetMapping(path = "version.txt") public String versionTxt() { return VERSION; }  @GetMapping(path = "version.txt") String versionTxt(); @GetMapping(path = "version.svg") RedirectView versionSvg(); @GetMapping(path = "version.png") RedirectView versionPng();  }
@Test public void versionTxt() throws Exception { mockMvc .perform(get(CONTEXT_PATH + "/version.txt")) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(TEXT_PLAIN)) .andExpect(content().string(VERSION)); }