package ru.job4j;

import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;


public class CalculateTest {
    @Test
    public void whenSetStopInEchoThenReturnThreeStops() {
       
        Calculate calc = new Calculate();
        String result = calc.echo("stop");
        assertThat(result, is("stop stop stop"));
    }
    
 }
   

@@ -35,16 +35,82 @@
 t.Test;%0A
+import java.io.ByteArrayOutputStream;%0Aimport java.io.PrintStream;%0A
 import s
@@ -213,214 +213,317 @@
     
-@Test%0A    public void whenSetStopInEchoThenReturnThreeStops() %7B%0A       %0A        Calculate calc = new Calculate();%0A        String result = calc.echo(%22stop%22);%0A        assertThat(result, is(%22stop stop stop%22));
+/**%0A    *Test add.%0A    */%0A    %0A    @Test%0Apublic void whenAddOneToOneThenTwo() %7B %7B%0A       %0A        ByteArrayOutputStream out = new ByteArrayOutputStream();%0A        System.setOut(new PrintStream(out));%0A        Calculate.main(null);%0A        assertThat(out.toString(), is(%22Hello World%5Cr%5Cn%22));%0A    %7D%0A%0A    %0A        
 %0A   
@@ -530,15 +530,14 @@
  %7D%0A    %0A
- 
 %7D%0A   %0A

Update CalculateTest.java