@Test
    public void testPairVsTwoPair() {
        FiveCardPokerHand pair = new FiveCardPokerHand();
        assertTrue(pair.addCard(new Card(Suit.HEART, Rank.DEUCE)));
        assertTrue(pair.addCard(new Card(Suit.CLUB, Rank.DEUCE)));
        assertTrue(pair.addCard(new Card(Suit.SPADE, Rank.THREE)));
        assertTrue(pair.addCard(new Card(Suit.HEART, Rank.FOUR)));
        assertTrue(pair.addCard(new Card(Suit.HEART, Rank.FIVE)));

        FiveCardPokerHand twoPair = new FiveCardPokerHand();
        assertTrue(twoPair.addCard(new Card(Suit.HEART, Rank.FOUR)));
        assertTrue(twoPair.addCard(new Card(Suit.CLUB, Rank.FOUR)));
        assertTrue(twoPair.addCard(new Card(Suit.SPADE, Rank.SEVEN)));
        assertTrue(twoPair.addCard(new Card(Suit.HEART, Rank.SEVEN)));
        assertTrue(twoPair.addCard(new Card(Suit.DIAMOND, Rank.FIVE)));
        
        assertTrue("Two pair hand " + twoPair + " doesn't beat pair hand " + pair, 
        comparator.compare(pair, twoPair) > 0);    
    }