### Question:
RestGameController { @GetMapping("/{name}/sprites/url") public String spritesUrl(@PathVariable("name") String name) { if (!exists(name) || !isGraphic(name)) { return null; } return String.format("/%s/resources/sprite/%s/%s.png", 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 shouldSpritesUrl() { assertEquals("/codenjoy-contest/resources/sprite/first/*.png", service.spritesUrl("first")); assertEquals("/codenjoy-contest/resources/sprite/second/*.png", service.spritesUrl("second")); assertEquals(null, service.spritesUrl("non-exists")); assertEquals("/codenjoy-contest/resources/sprite/first/*.png", get("/rest/game/first/sprites/url")); assertEquals("/codenjoy-contest/resources/sprite/second/*.png", get("/rest/game/second/sprites/url")); assertEquals("", get("/rest/game/non-exists/sprites/url")); }