playerJoinMsg.setGameId(game.getId());
getSession("1");
WebSocketSession player2Session = getSession("2");
handler.afterConnectionEstablished(player2Session);
handler.handleMessage(player2Session, getTextMessage(playerJoinMsg));
GameEvent playerJoinedEvent = mapper.readValue(messages.get("1").removeLast().getPayload().toString(), GameEvent.class);
Assert.assertEquals(GameEventType.PLAYER_JOINED, playerJoinedEvent.getType());