@@ -0,0 +1,831 @@
+package ru.job4j.array;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.hamcrest.core.Is.is;%0A%0A/**%0A * TurnTest.%0A * @author mklimentiev%0A * @version 1.0%0A * @since 16.04.2017%0A*/%0Apublic class TurnTest %7B%0A%09/**%0A%09 * Test back.%0A%09*/%0A%09@Test%0A%09public void whenTurnArrayWithEvenAmountOfElementsThenTurnedArray() %7B%0A%09%09Turn turnArray = new Turn();%0A%09%09int%5B%5D array = %7B1, 2, 3, 4, 5%7D;%0A%09%09int%5B%5D expectArray = %7B5, 4, 3, 2, 1%7D;%0A%09%09int%5B%5D resultArray = turnArray.back(array);%0A%09%09assertThat(resultArray, is(expectArray));%0A%09%7D%0A%0A%09/**%0A%09 * Test back.%0A%09*/%0A%09@Test%0A%09public void whenTurnArrayWithOddAmountOfElementsThenTurnedArray() %7B%0A%09%09Turn turnArray = new Turn();%0A%09%09int%5B%5D array1 = %7B4, 1, 6, 2%7D;%0A%09%09int%5B%5D expectArray1 = %7B2, 6, 1, 4%7D;%0A%09%09int%5B%5D resultArray1 = turnArray.back(array1);%0A%09%09assertThat(resultArray1, is(expectArray1));%0A%09%7D%0A%7D%0A%0A

Add TurnTest.java