### Question:
GameMasterController { @RequestMapping(value = "/game/{gameId}/start-round", method = RequestMethod.POST) public void startRound(@PathVariable Long gameId) throws InvalidGameIdException { Game game = repoUtil.findGameById(gameId); Integer nextRound = game.getRound() + 1; game.setRound(nextRound); game.setPhase("answering questions"); gameRepository.save(game); LOGGER.info("starting round " + nextRound); }  @RequestMapping(value = "/game/{gameId}/contender-names", method = RequestMethod.GET) @ResponseBody ContenderNamesResponse getContenderNames(@PathVariable Long gameId); @RequestMapping(value = "/game/{gameId}/start-game", method = RequestMethod.POST) void startGame(@PathVariable Long gameId); @RequestMapping(value = "/game/{gameId}/start-round", method = RequestMethod.POST) void startRound(@PathVariable Long gameId); @RequestMapping(value = "/game/{gameId}/start-voting", method = RequestMethod.POST) void startVoting(@PathVariable Long gameId); @RequestMapping(value = "/game/{gameId}/question-votes", method = RequestMethod.GET) @ResponseBody QuestionVotesResponse getQuestionVotes(@PathVariable Long gameId); @RequestMapping(value = "/game/{gameId}/set-next-to-score", method = RequestMethod.POST) void setNextToScore(@PathVariable Long gameId); @RequestMapping(value = "/game/{gameId}/final-results", method = RequestMethod.GET) @ResponseBody FinalResultsResponse getFinalResults(@PathVariable Long gameId); @RequestMapping(value = "/game/{gameId}/all-votes-submitted", method = RequestMethod.GET) @ResponseBody AllVotesSubmitted allVotesSubmitted(@PathVariable Long gameId); @RequestMapping(value = "/game/{gameId}/more-to-vote-on", method = RequestMethod.GET) @ResponseBody MoreToVoteOn moreQuestionsToVoteOn(@PathVariable Long gameId);  }### Answer:
@Test public void givenValidGameId_whenCallingStartRound_thenIncrementRoundAndUpdatePhase() throws Exception { Game game = new Game(); game.setRound(0); game.setId(1L); doReturn(game).when(repoUtil).findGameById(1L); Game game2 = new Game(); game2.setRound(0); game2.setId(2L); doReturn(game).when(repoUtil).findGameById(1L); doReturn(new HashSet<>()).when(retrieveQuestionsUtil).getRandomQuestions(anyInt()); doReturn(game2).when(repoUtil).findGameById(2L); mockMvc.perform(post("/game/1/start-round")) .andExpect(status().isOk()); gameMasterController.startRound(2L); assertEquals("answering questions", game.getPhase()); assertEquals("answering questions", game2.getPhase()); assertEquals((Integer) 1, game.getRound()); assertEquals((Integer) 1, game2.getRound()); verify(gameRepository).save(game); verify(gameRepository).save(game2); }