verify(msg, times(3)).sendMessage(any(MsgStopGame.class));
}
@Test
public void GetGameStateTest() {
MsgSystem msg = mock(MsgSystem.class);
GameMechanics game = new GameMechanics(msg, addressSystem, resource);
game.startGameSession(firstUserSessionId, firstUserId, secondUserSessionId, secondUserId);
gameSessionId = game.gameSessionIdCreator.get();
game.GetGameState(firstUserSessionId, firstUserId, secondUserSessionId, secondUserId, gameSessionId);
verify(msg, times(2)).sendMessage(any(UpdateGameState.class));