import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.junit.MockitoJUnitRunner;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(MockitoJUnitRunner.class)
public class TennisGameScoreTest {

    @InjectMocks
    private TennisGameScore tennisGameScore;

    @Test
    public void should_game_over_when_federer_wins_the_game() {
        // Arrange
        tennisGameScore.setFedererScore(4);

        // Act
        boolean tennisGameOver = tennisGameScore.isOver();

        // Assert
        assertThat(tennisGameOver).isTrue();
    }

    @Test
    public void should_game_over_when_nadal_wins_the_game() {
        // Arrange
        tennisGameScore.setNadalScore(4);

        // Act
        boolean tennisGameOver = tennisGameScore.isOver();

        // Assert
        assertThat(tennisGameOver).isTrue();
    }

    @Test
    public void should_not_game_over_when_no_one_wins() {
        // Arrange
        tennisGameScore.setFedererScore(2);
        tennisGameScore.setNadalScore(2);

        // Act
        boolean tennisGameNotOver = tennisGameScore.isNotOver();

        // Assert
        assertThat(tennisGameNotOver).isTrue();
    }

}

@@ -1210,10 +1210,608 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void should_add_point_to_federer_when_federer_wins_point() %7B%0A        // Act%0A        tennisGameScore.addPointFederer();%0A%0A        // Assert%0A        assertThat(tennisGameScore.getFedererScore()).isEqualTo(1);%0A        assertThat(tennisGameScore.getWinner()).isEqualTo(%22Federer%22);%0A    %7D%0A%0A    @Test%0A    public void should_add_point_to_nadal_when_nadal_wins_point() %7B%0A        // Act%0A        tennisGameScore.addPointNadal();%0A%0A        // Assert%0A        assertThat(tennisGameScore.getWinner()).isEqualTo(%22Nadal%22);%0A        assertThat(tennisGameScore.getNadalScore()).isEqualTo(1);%0A    %7D%0A%0A
 %7D%0A

Test on adding point to federer / nadal