@@ -0,0 +1,1135 @@
+package in.webplay.poker;%0A%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class HandTest %7B%0A    Hand hand;%0A%0A    @Before%0A    public void before() %7B%0A        hand = new Hand(null);%0A    %7D%0A%0A    @Test%0A    public void shouldBeAbleToBuildAHandFromAString() %7B%0A        String cardStr = %22As Ac Kd Kh 7c%22;%0A        Hand hand = Hand.fromString(cardStr);%0A        assertEquals(cardStr, hand.toString());%0A    %7D%0A        %0A    @Test%0A%09public void shouldIdentifyThreeSameSuits() throws Exception %7B%0A%09%09Hand threeFlush = Hand.fromString(%222c 5d 8c Ac 7h%22);%0A%09%09assertThat(threeFlush.numSameSuits(), is(3));%0A%09%7D%0A    %0A    @Test%0A%09public void flushShouldHaveFiveSameSuits() %7B%0A%09%09Hand flush = Hand.fromString(%222c 5c 8c Ac 7c%22);%0A%09%09assertThat(flush.numSameSuits(), is(5));%09%09%0A%09%7D%0A%7D%0A%0A//describe('POKER.Hand.numSameSuits()', function () %7B%0A//    it('trip aces should have two same suits', function () %7B%0A//        tripAces.numSameSuits().should.equal(2);%0A//    %7D);%0A//%0A//    it('flush should have five same suits', function () %7B%0A//        flush.numSameSuits().should.equal(5);%0A//    %7D);%0A//%0A//%7D);%0A

Add tests for Hand class