@Test
	public void testManyGames(){
		Dealer dealer = new Dealer();
		Player player1 = new RandomPlayer("Alice");
		Player player2 = new SimplePlayer("Bob");
		Player player3 = new ThresholdPlayer("Carol");
		dealer.addPlayer(player1);
		dealer.addPlayer(player2);
		dealer.addPlayer(player3);
		int player1Earnings = 0;
		int player2Earnings = 0;
		int player3Earnings = 0;
		for (int i = 0; i < 1000; i++) {
			GameResult result = dealer.runGame(i);
			logger.debug("Result was {}.",result);
			int winnings = result.getPot() / result.getWinners().size();
			player1Earnings += (result.getWinners().contains(player1) ? winnings : 0) - result.getBets().get(player1);
			player2Earnings += (result.getWinners().contains(player2) ? winnings : 0) - result.getBets().get(player2);
			player3Earnings += (result.getWinners().contains(player3) ? winnings : 0) - result.getBets().get(player3);
		}
		logger.info("Total earnings were Alice = {}, Bob = {},  Carol = {}.",player1Earnings,player2Earnings,player3Earnings);
	}