@Test
    public void testTwoPairVsTwoPair2() {
        FiveCardPokerHand twoPair1 = new FiveCardPokerHand();
        assertTrue(twoPair1.addCard(new Card(Suit.SPADE, Rank.DEUCE)));
        assertTrue(twoPair1.addCard(new Card(Suit.CLUB, Rank.ACE)));
        assertTrue(twoPair1.addCard(new Card(Suit.SPADE, Rank.ACE)));
        assertTrue(twoPair1.addCard(new Card(Suit.DIAMOND, Rank.DEUCE)));
        assertTrue(twoPair1.addCard(new Card(Suit.SPADE, Rank.THREE)));

        FiveCardPokerHand twoPair2 = new FiveCardPokerHand();
        assertTrue(twoPair2.addCard(new Card(Suit.DIAMOND, Rank.ACE)));
        assertTrue(twoPair2.addCard(new Card(Suit.SPADE, Rank.KING)));
        assertTrue(twoPair2.addCard(new Card(Suit.CLUB, Rank.KING)));
        assertTrue(twoPair2.addCard(new Card(Suit.DIAMOND, Rank.QUEEN)));
        assertTrue(twoPair2.addCard(new Card(Suit.CLUB, Rank.QUEEN)));

        assertTrue("Hand " + twoPair1 + " doesn't beat hand " + twoPair2, 
                comparator.compare(twoPair1, twoPair2) < 0);
    }