@Test
    public void testStraightVsFlush() {
        FiveCardPokerHand straight = new FiveCardPokerHand();
        assertTrue(straight.addCard(new Card(Suit.HEART, Rank.EIGHT)));
        assertTrue(straight.addCard(new Card(Suit.CLUB, Rank.SEVEN)));
        assertTrue(straight.addCard(new Card(Suit.SPADE, Rank.SIX)));
        assertTrue(straight.addCard(new Card(Suit.HEART, Rank.NINE)));
        assertTrue(straight.addCard(new Card(Suit.SPADE, Rank.FIVE)));

        FiveCardPokerHand flush = new FiveCardPokerHand();
        assertTrue(flush.addCard(new Card(Suit.DIAMOND, Rank.DEUCE)));
        assertTrue(flush.addCard(new Card(Suit.DIAMOND, Rank.QUEEN)));
        assertTrue(flush.addCard(new Card(Suit.DIAMOND, Rank.ACE)));
        assertTrue(flush.addCard(new Card(Suit.DIAMOND, Rank.SIX)));
        assertTrue(flush.addCard(new Card(Suit.DIAMOND, Rank.SEVEN)));
        
        assertTrue("Flush hand " + flush + " doesn't beat straight hand " + straight,
                comparator.compare(straight, flush) > 0);
    }