@@ -0,0 +1,924 @@
+import org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.junit.MockitoJUnitRunner;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class TennisGameTest %7B%0A%0A    @InjectMocks%0A    private TennisGame tennisGame;%0A%0A    @Mock%0A    private TennisGameScore tennisGameScore;%0A%0A    @Before%0A    public void setUp() %7B%0A        initTennisGameScore();%0A    %7D%0A%0A    @Test%0A    public void should_federer_wins_point_when_it_has_an_even_number() %7B%0A        assertThat(tennisGame.isFedererWinPoint(2)).isTrue();%0A    %7D%0A%0A    private void initTennisGameScore() %7B%0A        tennisGameScore.init();%0A        tennisGameScore.addPoint(0, 1, %22Nadal%22);%0A        tennisGameScore.addPoint(0, 2, %22Nadal%22);%0A        tennisGameScore.addPoint(0, 3, %22Nadal%22);%0A        tennisGameScore.addPoint(0, 4, %22Nadal%22);%0A    %7D%0A%0A%7D%0A

Test on winning point for Federer