@@ -0,0 +1,1364 @@
+/**%0A *%0A */%0Apackage com.github.apixandru.games.rummikub;%0A%0Aimport java.util.Arrays;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * @author Alexandru-Constantin Bledea%0A * @since Sep 16, 2015%0A */%0A@SuppressWarnings (%22static-method%22)%0Apublic final class CardsTest %7B%0A%0A%09/**%0A%09 *%0A%09 */%0A%09@Test%0A%09public void testTooFewCards2() %7B%0A%09%09final Card black1 = new Card(Color.BLACK, Rank.ONE);%0A%09%09final Card blue1 = new Card(Color.BLUE, Rank.ONE);%0A%09%09final CardGroup group = new CardGroup(Arrays.asList(black1, blue1));%0A%09%09Assert.assertFalse(%22Less than three cards is always invalid%22, group.isValid());%0A%09%7D%0A%0A%09/**%0A%09 *%0A%09 */%0A%09@Test%0A%09public void testRepeatedColorGroup() %7B%0A%09%09final Card black1 = new Card(Color.BLACK, Rank.ONE);%0A%09%09final Card blue1 = new Card(Color.BLUE, Rank.ONE);%0A%09%09final Card blue1again = new Card(Color.BLACK, Rank.ONE);%0A%09%09final CardGroup group = new CardGroup(Arrays.asList(black1, blue1, blue1again));%0A%09%09Assert.assertFalse(%22Cannot have the same color twice in a group%22, group.isValid());%0A%09%7D%0A%0A%09/**%0A%09 *%0A%09 */%0A%09@Test%0A%09public void testBadRankGroup() %7B%0A%09%09final Card black1 = new Card(Color.BLACK, Rank.ONE);%0A%09%09final Card blue1 = new Card(Color.BLUE, Rank.ONE);%0A%09%09final Card red2 = new Card(Color.RED, Rank.TWO);%0A%09%09final CardGroup group = new CardGroup(Arrays.asList(black1, blue1, red2));%0A%09%09Assert.assertFalse(%22A group must have different colors%22, group.isValid());%0A%09%7D%0A%7D%0A

add a couple of tests