package com.skraylabs.poker.model;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;

import org.junit.Before;
import org.junit.Test;

public class CardTest {

  /**
   * Test fixture card.
   */
  Card fixedCard;

  /**
   * Test fixture rank.
   */
  final Rank fixedRank = Rank.Ace;

  /**
   * Test fixture suit.
   */
  Suit fixedSuit = Suit.Clubs;

  @Before
  public void setUp() throws Exception {
    fixedCard = new Card(fixedRank, fixedSuit);
  }

  @Test
  public void testGetRank() {
    // Exercise
    Rank rank = fixedCard.getRank();
    // Verify
    assertThat(rank, equalTo(fixedRank));
  }

  @Test
  public void testGetSuit() {
    // Exercise
    Suit suit = fixedCard.getSuit();
    // Verify
    assertThat(suit, equalTo(fixedSuit));
  }
  
}

@@ -78,16 +78,60 @@
 qualTo;%0A
+import static org.hamcrest.CoreMatchers.is;%0A
 import s
@@ -175,16 +175,16 @@
 rtThat;%0A
-
 %0Aimport 
@@ -852,13 +852,790 @@
 ));%0A  %7D%0A
+%0A
   
+@Test%0A  public void testEquals_differentSuit() %7B%0A    // Set up%0A    Card differentCard = new Card(fixedRank, Suit.Diamonds);%0A    // Exercise%0A    final boolean equals = fixedCard.equals(differentCard);%0A    // Verify%0A    assertThat(equals, is(false));%0A  %7D%0A%0A  @Test%0A  public void testEquals_differentRank() %7B%0A    // Set up%0A    Card differentCard = new Card(Rank.Four, fixedSuit);%0A    // Exercise%0A    final boolean equals = fixedCard.equals(differentCard);%0A    // Verify%0A    assertThat(equals, is(false));%0A  %7D%0A%0A  @Test%0A  public void testEquals_differentRankAndDifferentSuit() %7B%0A    // Set up%0A    Card differentCard = new Card(Rank.Queen, Suit.Hearts);%0A    // Exercise%0A    final boolean equals = fixedCard.equals(differentCard);%0A    // Verify%0A    assertThat(equals, is(false));%0A  %7D%0A
 %0A%7D%0A

Add tests for equals() with false result.