@@ -0,0 +1,1382 @@
+package ru.matevosyan;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.Iterator;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0A%0Apublic class UserConverterTest %7B%0A%0A    @Test%0A    public void whenPassArrayThanCheckList() %7B%0A%0A        //assign%0A        User admin = new User(1, %22Tom%22, %22LA%22);%0A        User firsUser = new User(2, %22Vova%22, %22Moscow%22);%0A        User secondUser = new User(3, %22Vardan%22, %22Dzhanfida%22);%0A%0A        List%3CUser%3E userList = new ArrayList%3C%3E();%0A        HashMap%3CInteger, User%3E actualUserMap;%0A%0A        UserConverter convertList = new UserConverter();%0A%0A        //act%0A        userList.add(admin);%0A        userList.add(firsUser);%0A        userList.add(secondUser);%0A%0A        actualUserMap = convertList.process(userList);%0A%0A        //assert%0A        Iterator%3CMap.Entry%3CInteger, User%3E%3E hashMap = actualUserMap.entrySet().iterator();%0A        Iterator%3CUser%3E userValues = userList.iterator();%0A%0A        while (hashMap.hasNext() && userValues.hasNext()) %7B%0A            Map.Entry%3CInteger, User%3E userEntry = hashMap.next();%0A            User userArrayList = userValues.next();%0A            assertThat(userEntry.getKey(), is(userArrayList.getId()));%0A            assertThat(userEntry.getValue().getName(), is(userArrayList.getName()));%0A        %7D%0A%0A    %7D%0A%0A%0A%0A%7D

add UserConverterTest class