@@ -0,0 +1,551 @@
+package ru.nivanov.start;%0Aimport ru.nivanov.models.*;%0Aimport org.junit.Test;%0Aimport java.io.ByteArrayInputStream;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A/**%0A * ConsoleInputTest class.%0A * @author nivanov.%0A * @since%0A * @version%0A */%0A%0Apublic class ConsoleInputTest %7B%0A%09/**%0A%09* Test for console input.%0A%09*%0A%09*/%0A%09@Test%0A%09public void whenAddItemThenReturnId() %7B%0A%09%09System.setIn(new ByteArrayInputStream(%22123%22.getBytes()));%0A%09%09%09ConsoleInput test = new ConsoleInput();%0A%09%09%09assertThat(test.ask(%22enter 123%5Cn%22), is(%22123%22));%0A%09%7D%0A%7D

add consoleinput test