@@ -0,0 +1,1195 @@
+package ru.revdaalex.menu;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A *%0A * Created by revdaalex on 15.09.2016.%0A */%0Apublic class MenuTest %7B%0A    /**%0A     * Test RootMenu.%0A     */%0A    @Test%0A    public void whenCreateRootMenuLevel()%7B%0A        MockIO mockIO = new MockIO(new String%5B%5D%7B%7D);%0A        RootMenu rootMenu = new RootMenu(%22%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B0 1%22, mockIO);%0A        rootMenu.show();%0A        Assert.assertThat(mockIO.getOut().split(%22%5Cn%22)%5B0%5D, is(%22%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B0 1%22));%0A    %7D%0A%0A    /**%0A     * Test ChapterMenu.%0A     */%0A    @Test%0A    public void whenCreateChapterMenuLevel()%7B%0A        MockIO mockIO = new MockIO(new String%5B%5D%7B%7D);%0A        ChapterMenu chapterMenu = new ChapterMenu(%22%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B0 1.1%22, mockIO);%0A        chapterMenu.show();%0A        Assert.assertThat(mockIO.getOut().split(%22%5Cn%22)%5B0%5D, is(%22----%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B0 1.1%22));%0A    %7D%0A%0A    /**%0A     * Test SubMenu.%0A     */%0A    @Test%0A    public void whenCreateSubMenuLevel()%7B%0A        MockIO mockIO = new MockIO(new String%5B%5D%7B%7D);%0A        SubMenu subMenu = new SubMenu(%22%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B0 1.1.1%22, mockIO);%0A        subMenu.show();%0A        Assert.assertThat(mockIO.getOut().split(%22%5Cn%22)%5B0%5D, is(%22------%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D0%B0 1.1.1%22));%0A    %7D%0A%7D

add MenuTest.java