### Question:
RestGameController { @GetMapping("/{name}/sprites/names") public List<String> spritesNames(@PathVariable("name") String name) { if (!exists(name)) { return null; } return gameService.getSpritesNames().get(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 shouldSpritesNames() { assertEquals("[none, wall, hero]", service.spritesNames("first").toString()); assertEquals("[none, red, green, blue]", service.spritesNames("second").toString()); assertEquals(null, service.spritesNames("non-exists")); assertEquals("[\"none\",\"wall\",\"hero\"]", get("/rest/game/first/sprites/names")); assertEquals("[\"none\",\"red\",\"green\",\"blue\"]", get("/rest/game/second/sprites/names")); assertEquals("", get("/rest/game/non-exists/sprites/names")); }