### Question:
VersionController extends PriceController implements InfoContributor { @GetMapping(path = "/getVersion") public String getVersion() { return version; } VersionController(@Value("classpath:version.txt") Resource versionTxt); @GetMapping(path = "/getVersion") String getVersion(); @Override void contribute(Info.Builder builder);  }### Answer:
@Test public void getVersion() throws IOException { VersionController controller = new VersionController( new FileSystemResource("src/main/resources/version.txt")); String version = controller.getVersion(); assertTrue(version.length() > 0); }