@Test
    public void testFourOfAKindVsFourOfAKindTie() {
        FiveCardPokerHand fourOfAKind1 = new FiveCardPokerHand();
        assertTrue(fourOfAKind1.addCard(new Card(Suit.CLUB, Rank.ACE)));
        assertTrue(fourOfAKind1.addCard(new Card(Suit.DIAMOND, Rank.TEN)));
        assertTrue(fourOfAKind1.addCard(new Card(Suit.SPADE, Rank.ACE)));
        assertTrue(fourOfAKind1.addCard(new Card(Suit.HEART, Rank.ACE)));
        assertTrue(fourOfAKind1.addCard(new Card(Suit.DIAMOND, Rank.ACE)));

        FiveCardPokerHand fourOfAKind2 = new FiveCardPokerHand();
        assertTrue(fourOfAKind2.addCard(new Card(Suit.CLUB, Rank.TEN)));
        assertTrue(fourOfAKind2.addCard(new Card(Suit.DIAMOND, Rank.ACE)));
        assertTrue(fourOfAKind2.addCard(new Card(Suit.CLUB, Rank.ACE)));
        assertTrue(fourOfAKind2.addCard(new Card(Suit.HEART, Rank.ACE)));
        assertTrue(fourOfAKind2.addCard(new Card(Suit.SPADE, Rank.ACE)));

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