### Question:
PlayerGamesView { public List<PScoresOf> getScoresForGame(String gameName) { return scoresFor(pg -> pg.getPlayer().getGameName().equals(gameName)); }  Map<String, GameData> getGamesDataMap(); Map<String, List<String>> getGroupsMap(); List<List<String>> getGroupsByRooms(); List<List<String>> getGroupsByField(); Map<String, Object> getScores(); List<PScoresOf> getScoresForGame(String gameName); List<PScoresOf> getScoresForRoom(String roomName); Map<String, String> getReadableNames();  }### Answer:
@Test public void testGetScoresForGame() { testGetGamesDataMap_singleGames(); GameType gameType2 = addNewGameType("gameName2", 1234, inv -> mock(GameField.class)); addNewPlayer(gameType2, 678, getHeroData(23, pt(5, 6), "data8")); addNewPlayer(gameType2, 789, getHeroData(24, pt(8, 7), "data9")); List<PScoresOf> scores = playerGamesView.getScoresForGame("gameName1"); assertEquals("[" + "{'score':123,'name':'readable_user1','id':'user1'}," + "{'score':234,'name':'readable_user2','id':'user2'}," + "{'score':345,'name':'readable_user3','id':'user3'}," + "{'score':456,'name':'readable_user4','id':'user4'}]", JsonUtils.clean(JsonUtils.toStringSorted(new JSONArray(scores)))); }