@@ -0,0 +1,550 @@
+package ru.job4j;%0A%0Aimport org.junit.Test;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.PrintStream;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * %D0%9A%D0%BB%D0%B0%D1%81%D1%81 %D0%B4%D0%BB%D1%8F %D1%82%D0%B5%D1%81%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F%0A * @author mosipov%0A * @since 15.12.2016%0A * @version 1%0A *%0A */%0Apublic class CalculateTest %7B%0A%0A%09@Test%0A%09public void whenExecuteMainThenPrintToConsole() %7B%0A%09%09ByteArrayOutputStream out = new ByteArrayOutputStream();%0A%09%09System.setOut(new PrintStream(out));%0A%09%09Calculate.main(null);%0A%09%09assertThat(out.toString(), is(%22Hello world%5Cr%5Cn%22));%0A%09%7D%0A%0A%7D

add test java class