package ru.alexandr;

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"));
    	}	
}
@@ -38,16 +38,82 @@
 t.Test;%0A
+import java.io.ByteArrayOutputStream;%0Aimport java.io.PrintStream;%0A
 import s
@@ -178,11 +178,19 @@
 ert.
-*;%0A
+assertThat;
 %0A%0Apu
@@ -220,21 +220,29 @@
 t %7B%0A
+%0A 
     
-%0A%09
+  
 @Test%0A
-%09
+       
 publ
@@ -253,134 +253,181 @@
 oid 
-WhenSetStopInEchoThenReturnThreeStops() %7B%0A%09    Calculate calc = new Calculate();%0A%09    String result = calc.echo(%22stop%22);%0A%09
+whenAddOneToOneThenTwo() %7B%0A%09 %09ByteArrayOutputStream out = new ByteArrayOutputStream();%0A        %09System.setOut(new PrintStream(out));%0A        %09Calculate.main(null);%0A    
     
+%09
 asse
@@ -437,34 +437,44 @@
 hat(
-result, is(%22stop stop stop
+out.toString(), is(%22Hello world!%5Cr%5Cn
 %22));
@@ -482,9 +482,8 @@
     
-%09%7D%09
+%7D
 %0A%7D
+%0A

add structure