### Question:
CardSet { public List<Card> getSortedCards() { return sortedCards; } CardSet(Card card1, Card card2, Card card3, Card card4, Card card5); List<Card> getSortedCards();  }### Answer:
@Test public void shouldSortRanks() { CardSet cardSet = new CardSet( aCard(HEART, TEN), aCard(HEART, KING), aCard(HEART, ACE), aCard(HEART, QUEEN), aCard(HEART, JACK)); List<Card> sortedCards = cardSet.getSortedCards(); assertThat(sortedCards) .containsSequence( aCard(HEART, ACE), aCard(HEART, KING), aCard(HEART, QUEEN), aCard(HEART, JACK), aCard(HEART, TEN)); }
@Test public void shouldSortRanksThanSuits() { CardSet cardSet = new CardSet( aCard(CLUB, ACE), aCard(HEART, KING), aCard(DIAMOND, ACE), aCard(SPADE, ACE), aCard(HEART, ACE)); List<Card> sortedCards = cardSet.getSortedCards(); assertThat(sortedCards) .containsSequence( aCard(HEART, ACE), aCard(DIAMOND, ACE), aCard(CLUB, ACE), aCard(SPADE, ACE), aCard(HEART, KING)); }