@@ -0,0 +1,1654 @@
+package ru.matevosyan;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertTrue;%0A%0A%0A/**%0A * FastSimpleSetTest class.%0A * Created on 04.06.2017.%0A * @author Matevosyan Vardan%0A * @version 1.0%0A */%0A%0Apublic class FastSimpleSetTest %7B%0A%0A    /**%0A     * Create whenCreateTwoObjectAndAddValuesThanCheckWhoAddedFasterToTheContainer() to check hwo is faster.%0A     */%0A%0A    @Test public void whenCreateTwoObjectAndAddValuesThanCheckWhoAddedFasterToTheContainer() %7B%0A        FastSimpleSet%3CInteger%3E fastSimpleSet = new FastSimpleSet%3C%3E();%0A        DynamicSimpleSet%3CInteger%3E dynamicSimpleSet = new DynamicSimpleSet%3C%3E();%0A%0A        long fastSetTimeBegin = System.currentTimeMillis();%0A        for (int i = 0; i %3C 3223; i++) %7B%0A            fastSimpleSet.add(i);%0A        %7D%0A        long fastSetTimeEnd = System.currentTimeMillis();%0A%0A%0A        long dynamicSimpleSetTimeBegin = System.currentTimeMillis();%0A        for (int i = 0; i %3C 3223; i++) %7B%0A            dynamicSimpleSet.add(i);%0A        %7D%0A        long dynamicSimpleSetTimeEnd = System.currentTimeMillis();%0A%0A        long fastTime = fastSetTimeEnd - fastSetTimeBegin;%0A        long dynamicSimpleTime = dynamicSimpleSetTimeEnd - dynamicSimpleSetTimeBegin;%0A%0A        assertTrue(fastTime %3C dynamicSimpleTime);%0A%0A%0A    %7D%0A%0A    /**%0A     * Create whenAddValueToTheFastSimpleSetThanCheckIt() to check value.%0A     */%0A%0A    @Test%0A    public void whenAddValueToTheFastSimpleSetThanCheckIt() %7B%0A        FastSimpleSet%3CInteger%3E fastSimpleSet = new FastSimpleSet%3C%3E();%0A        fastSimpleSet.add(5);%0A%0A        assertThat(fastSimpleSet.get(0), is(5));%0A    %7D%0A%0A%7D

add FastSimpleSetTest.java