@Test
    public void testResultsForSimulationsThreeHands2() {
        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);  
        TexasHoldemStartingHand hand3 = new TexasHoldemStartingHand(new Card(Suit.SPADE, Rank.FIVE), new Card(Suit.DIAMOND, Rank.FIVE));
        hands.add(hand3);             
        SimulationResult result = new SimulationResult(hands, board, 4, PokerGameType.TEXAS);          
        Set<AbstractStartingHand> winningHand = new HashSet<AbstractStartingHand>();
        // Hand 1 wins
        winningHand.add(hand1);
        result.addResultForOneSimulation(winningHand);
        // Hands 1 and 2 win
        winningHand.add(hand2);        
        result.addResultForOneSimulation(winningHand);
        // Hands 2 and 3 win
        winningHand.remove(hand1);
        winningHand.add(hand3);
        result.addResultForOneSimulation(winningHand);        
        // Hands 1, 2 and 3 win
        winningHand.add(hand1);        
        result.addResultForOneSimulation(winningHand);                
        
        assertEquals(25.00, result.getWinPercentageForHand(hand1, digits), 0);
        assertEquals(25.00, result.getLossPercentageForHand(hand1, digits), 0);
        assertEquals(50.00, result.getTiePercentageForHand(hand1, digits), 0);        
        assertEquals(0.4583, result.getEquityForHand(hand1, digits), 0);
        
        assertEquals(0, result.getWinPercentageForHand(hand2, digits), 0);
        assertEquals(25.00, result.getLossPercentageForHand(hand2, digits), 0);
        assertEquals(75.00, result.getTiePercentageForHand(hand2, digits), 0);        
        assertEquals(0.3333, result.getEquityForHand(hand2, digits), 0);
        
        assertEquals(0, result.getWinPercentageForHand(hand3, digits), 0);
        assertEquals(50.00, result.getLossPercentageForHand(hand3, digits), 0);
        assertEquals(50.00, result.getTiePercentageForHand(hand3, digits), 0);        
        assertEquals(0.2083, result.getEquityForHand(hand3, digits), 0);        
    }