@Test
    public void testFlushVsFlush() {
        FiveCardPokerHand flush1 = new FiveCardPokerHand();
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.SIX)));
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.FIVE)));
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.FOUR)));
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.DEUCE)));
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.NINE)));

        FiveCardPokerHand flush2 = new FiveCardPokerHand();
        assertTrue(flush2.addCard(new Card(Suit.DIAMOND, Rank.ACE)));
        assertTrue(flush2.addCard(new Card(Suit.DIAMOND, Rank.FIVE)));
        assertTrue(flush2.addCard(new Card(Suit.DIAMOND, Rank.THREE)));
        assertTrue(flush2.addCard(new Card(Suit.DIAMOND, Rank.FOUR)));
        assertTrue(flush2.addCard(new Card(Suit.DIAMOND, Rank.SIX)));

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