@Test
    public void testPairVsPair2() {
        FiveCardPokerHand pair1 = new FiveCardPokerHand();
        assertTrue(pair1.addCard(new Card(Suit.SPADE, Rank.KING)));
        assertTrue(pair1.addCard(new Card(Suit.CLUB, Rank.ACE)));
        assertTrue(pair1.addCard(new Card(Suit.SPADE, Rank.SEVEN)));
        assertTrue(pair1.addCard(new Card(Suit.DIAMOND, Rank.SEVEN)));
        assertTrue(pair1.addCard(new Card(Suit.SPADE, Rank.NINE)));

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

        assertTrue("Hand " + pair2 + " doesn't beat hand " + pair1, 
                comparator.compare(pair1, pair2) > 0);
    }