### Question:
RestGameController { @GetMapping("/{name}/exists") public Boolean exists(@PathVariable("name") String name) { return gameService.getGameNames().contains(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 shouldExists() { assertEquals(true, service.exists("first")); assertEquals("true", get("/rest/game/first/exists")); assertEquals(true, service.exists("second")); assertEquals("true", get("/rest/game/second/exists")); assertEquals(false, service.exists("non-exists")); assertEquals("false", get("/rest/game/non-exists/exists")); }