@Test
    public void testTwoPairVsTwoPairTie() {
        FiveCardPokerHand twoPair1 = new FiveCardPokerHand();
        assertTrue(twoPair1.addCard(new Card(Suit.SPADE, Rank.JACK)));
        assertTrue(twoPair1.addCard(new Card(Suit.HEART, Rank.QUEEN)));
        assertTrue(twoPair1.addCard(new Card(Suit.HEART, Rank.THREE)));
        assertTrue(twoPair1.addCard(new Card(Suit.DIAMOND, Rank.THREE)));
        assertTrue(twoPair1.addCard(new Card(Suit.SPADE, Rank.QUEEN)));

        FiveCardPokerHand twoPair2 = new FiveCardPokerHand();
        assertTrue(twoPair2.addCard(new Card(Suit.DIAMOND, Rank.JACK)));
        assertTrue(twoPair2.addCard(new Card(Suit.SPADE, Rank.THREE)));
        assertTrue(twoPair2.addCard(new Card(Suit.CLUB, Rank.THREE)));
        assertTrue(twoPair2.addCard(new Card(Suit.DIAMOND, Rank.QUEEN)));
        assertTrue(twoPair2.addCard(new Card(Suit.CLUB, Rank.QUEEN)));

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