@Test
    public void testResultsForManySimulationsTwoHands() {
        Set<AbstractStartingHand> hands = new HashSet<AbstractStartingHand>();
        FiveCardBoard board = new FiveCardBoard();               
        int digits = 4;
        
        TexasHoldemStartingHand hand1 = new TexasHoldemStartingHand(new Card(Suit.CLUB, Rank.ACE), new Card(Suit.SPADE, Rank.ACE));
        hands.add(hand1);
        TexasHoldemStartingHand hand2 = new TexasHoldemStartingHand(new Card(Suit.CLUB, Rank.DEUCE), new Card(Suit.SPADE, Rank.THREE));
        hands.add(hand2);            
        SimulationResult result = new SimulationResult(hands, board, 165, PokerGameType.TEXAS);          
        Set<AbstractStartingHand> winningHand = new HashSet<AbstractStartingHand>();
        // Hand 1 wins 100 times        
        winningHand.add(hand1);
        for (int i = 0; i < 100; i++) {
            result.addResultForOneSimulation(winningHand);
        }        
        // The hands tie 5 times
        winningHand.add(hand2);        
        for (int i = 0; i < 5; i++) {
            result.addResultForOneSimulation(winningHand);        
        }
        // Hand 2 wins 60 times
        winningHand.remove(hand1);
        for (int i = 0; i < 60; i++) {
            result.addResultForOneSimulation(winningHand);        
        }        
        assertEquals(60.61, result.getWinPercentageForHand(hand1, digits), 0);
        assertEquals(36.36, result.getLossPercentageForHand(hand1, digits), 0);
        assertEquals(3.030, result.getTiePercentageForHand(hand1, digits), 0);        
        assertEquals(0.6212, result.getEquityForHand(hand1, digits), 0);
        
        assertEquals(36.36, result.getWinPercentageForHand(hand2, digits), 0);
        assertEquals(60.61, result.getLossPercentageForHand(hand2, digits), 0);
        assertEquals(3.030, result.getTiePercentageForHand(hand2, digits), 0);        
        assertEquals(0.3788, result.getEquityForHand(hand2, digits), 0);
    }