@@ -0,0 +1,1015 @@
+package ru.matevosyan;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.core.Is.is;%0A%0A/**%0A * For testing Stack class.%0A * Created on 25.05.2017.%0A * @author Matevosyan Vardan%0A * @version 1.0%0A */%0Apublic class StackTest %7B%0A    @Test%0A    public void whenAddToTheStackAndPeekThanCheckAddedAndPeekedElement() %7B%0A        Stack%3CInteger%3E stack = new Stack%3C%3E();%0A%0A        int a = stack.push(3);%0A        int b = stack.push(2);%0A%0A        int peek = stack.peek();%0A%0A        assertThat(a, is(3));%0A        assertThat(peek, is(b));%0A    %7D%0A%0A    @Test%0A    public void whenAddToTheStackAndPopThanCheckAddedAndPopElement() %7B%0A        Stack%3CInteger%3E stack = new Stack%3C%3E();%0A%0A        int a = stack.push(3);%0A        int b = stack.push(2);%0A%0A        int peek = stack.peek();%0A%0A        int pop = stack.pop();%0A%0A        int peekAfterPop = stack.peek();%0A        assertThat(a, is(3));%0A        assertThat(peek, is(b));%0A        assertThat(peekAfterPop, is(3));%0A        assertThat(pop, is(2));%0A%0A    %7D%0A%0A%7D

add StackTest.java