### Question:
PlayerGamesView { protected Map<String, GuiPlotColorDecoder> getDecoders() { return service.getGameTypes().stream() .collect(toMap(type -> type.name(), type -> new GuiPlotColorDecoder(type.getPlots()))); }  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 shouldGetDecoders() { GameType gameType1 = addNewGameType("gameName1", 1234, inv -> mock(GameField.class)); when(gameType1.getPlots()).thenReturn(Elements1.values()); GameType gameType2 = addNewGameType("gameName2", 1234, inv -> mock(GameField.class)); when(gameType2.getPlots()).thenReturn(Elements2.values()); addNewPlayer(gameType1, 123, getHeroData(10, pt(1, 2), "data1")); addNewPlayer(gameType2, 234, getHeroData(11, pt(3, 4), "data2")); assertEquals("{gameName1=[abc -> ABC], " + "gameName2=[1234 -> ABCD]}", playerGamesView.getDecoders().toString()); }