### Question:
RestAdminController { @GetMapping(ROOM + "/reload") public void reload(@PathVariable("roomName") String roomName) { validator.checkRoomName(roomName, CANT_BE_NULL); playerService.reloadAllRooms(roomName); }  @GetMapping("version") @ResponseBody String version(); @GetMapping("/info") @ResponseBody Map<String, String> getInfoLogs(); @GetMapping("/errors") @ResponseBody Map<String, Map<String, Object>> getTickets(
            @RequestParam(value = "ticket", required = false) String ticketId); @GetMapping("/player/all/groups") Map<String, List<List<String>>> getPlayersGroups(); @GetMapping("/player/all/scores") Map<String, Object> getPlayersScores(); @GetMapping("/scores/clear") boolean clearAllScores(); @GetMapping("/game/enabled/{enabled}") boolean startStopGame(@PathVariable("enabled") boolean enabled); @GetMapping("/player/all/info") List<PlayerDetailInfo> getPlayersForMigrate(); @GetMapping(ROOM + "/pause/{enabled}") void setEnabled(@PathVariable("roomName") String roomName,
                           @PathVariable("enabled") boolean enabled); @GetMapping(ROOM + "/pause") boolean getEnabled(@PathVariable("roomName") String roomName); @GetMapping(ROOM + "/scores/clear") void cleanScores(@PathVariable("roomName") String roomName); @GetMapping(ROOM + "/scores/{player}/set/{score}") void setScores(@PathVariable("roomName") String roomName,
                          @PathVariable("player") String id,
                          @PathVariable("score") String score); @GetMapping(ROOM + "/reload") void reload(@PathVariable("roomName") String roomName); @GetMapping(ROOM + "/settings/{gameName}") PParameters getSettings(@PathVariable("roomName") String roomName,
                                   @PathVariable("gameName") String gameName); @PostMapping(ROOM + "/settings/{gameName}") void setSettings(@PathVariable("roomName") String roomName,
                            @PathVariable("gameName") String gameName,
                            @RequestBody PParameters input); @GetMapping(ROOM + "/gameOver/{player}") void gameOver(@PathVariable("roomName") String roomName,
                         @PathVariable("player") String id); @GetMapping(ROOM + "/gameOverAll") void gameOverAll(@PathVariable("roomName") String roomName); @GetMapping(ROOM + "/load/{player}") void load(@PathVariable("roomName") String roomName,
                     @PathVariable("player") String id); @GetMapping(ROOM + "/saveAll") void saveAll(@PathVariable("roomName") String roomName); @GetMapping("/player/{player}/remove") @ResponseBody synchronized boolean removeUser(@PathVariable("player") String id); static final String URI; static final String ROOM; }### Answer:
@Test public void shouldReloadAllPlayersInRoom_validation() { assertException("Room name is invalid: '$bad$'", () -> service.reload("$bad$")); assertError("java.lang.IllegalArgumentException: Room name is invalid: '$bad$'", "/rest/admin/room/$bad$/reload"); }