import org.junit.Assert; import static org.junit.Assert.*; public class CardsTest { @org.junit.Before public void setUp() throws Exception { } @org.junit.After public void tearDown() throws Exception { } @org.junit.Test public void generateCard() { Cards card = new Cards(); Integer testCardValue = card.generateCard(); Assert.assertTrue(testCardValue >= 1 && testCardValue <= 13); } }