### Question:
RestGameController { @GetMapping("/{name}/sprites/exists") public Boolean isGraphic(@PathVariable("name") String name) { if (!exists(name)) { return null; } return !spritesNames(name).isEmpty(); }  @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 shouldIsGraphic() { assertEquals(true, service.isGraphic("first")); assertEquals(true, service.isGraphic("second")); assertEquals(null, service.isGraphic("non-exists")); assertEquals("true", get("/rest/game/first/sprites/exists")); assertEquals("true", get("/rest/game/second/sprites/exists")); assertEquals("", get("/rest/game/non-exists/sprites/exists")); }