@Test
    public void testFlushVsFlushTie() {
        FiveCardPokerHand flush1 = new FiveCardPokerHand();
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.SIX)));
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.TEN)));
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.JACK)));
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.QUEEN)));
        assertTrue(flush1.addCard(new Card(Suit.CLUB, Rank.KING)));

        FiveCardPokerHand flush2 = new FiveCardPokerHand();
        assertTrue(flush2.addCard(new Card(Suit.SPADE, Rank.KING)));
        assertTrue(flush2.addCard(new Card(Suit.SPADE, Rank.QUEEN)));
        assertTrue(flush2.addCard(new Card(Suit.SPADE, Rank.JACK)));
        assertTrue(flush2.addCard(new Card(Suit.SPADE, Rank.TEN)));
        assertTrue(flush2.addCard(new Card(Suit.SPADE, Rank.SIX)));

        assertTrue("Hands " + flush1 + " and " + flush2 + " don't tie", 
                comparator.compare(flush1, flush2) == 0);
    }