### Question:
RestGameController { @GetMapping("/{name}/client/url") public String client(@PathVariable("name") String name) { if (!exists(name)) { return null; } return String.format("/%s/resources/user/%s-servers.zip", CodenjoyContext.getContext(), name); }  @GetMapping("/{name}/exists") Boolean exists(@PathVariable("name") String name); @GetMapping("/{name}/info") PGameTypeInfo type(@PathVariable("name") String name); @GetMapping("/{name}/help/url") String help(@PathVariable("name") String name); @GetMapping("/{name}/client/url") String client(@PathVariable("name") String name); @GetMapping("/ws/url") String ws(); @GetMapping("/sprites") Map<String, List<String>> allSprites(); @GetMapping("/{name}/sprites/exists") Boolean isGraphic(@PathVariable("name") String name); @GetMapping("/{name}/sprites/names") List<String> spritesNames(@PathVariable("name") String name); @GetMapping("/{name}/sprites/values") List<String> spritesValues(@PathVariable("name") String name); @GetMapping("/{name}/sprites/url") String spritesUrl(@PathVariable("name") String name); @GetMapping("/sprites/alphabet") String spritesAlphabet();  }### Answer:
@Test public void shouldClientUrl() { String expected1 = "/codenjoy-contest/resources/user/first-servers.zip"; assertEquals(expected1, service.client("first")); assertEquals(expected1, get("/rest/game/first/client/url")); String expected2 = "/codenjoy-contest/resources/user/second-servers.zip"; assertEquals(expected2, service.client("second")); assertEquals(expected2, get("/rest/game/second/client/url")); assertEquals(null, service.client("non-exists")); assertEquals("", get("/rest/game/non-exists/client/url")); }