@@ -0,0 +1,1532 @@
+package com.wizzardo.tools.collections.lazy;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.util.Comparator;%0Aimport java.util.List;%0A%0A/**%0A * Created by wizzardo on 10.11.15.%0A */%0Apublic class LazyTest %7B%0A%0A    @Test%0A    public void test_1() %7B%0A        List%3CList%3CInteger%3E%3E result = Lazy.of(1, 2, 3)%0A                .groupBy(new Lazy.Mapper%3CInteger, Boolean%3E() %7B%0A                    @Override%0A                    public Boolean map(Integer it) %7B%0A                        return it %25 2 == 0;%0A                    %7D%0A                %7D)%0A                .flatMap(new Lazy.Mapper%3CLazyGroup%3CBoolean, Integer, Integer%3E, List%3CInteger%3E%3E() %7B%0A                    @Override%0A                    public List%3CInteger%3E map(LazyGroup%3CBoolean, Integer, Integer%3E group) %7B%0A                        return group.toList();%0A                    %7D%0A                %7D)%0A                .toSortedList(new Comparator%3CList%3CInteger%3E%3E() %7B%0A                    @Override%0A                    public int compare(List%3CInteger%3E o1, List%3CInteger%3E o2) %7B%0A                        return o1.size() %3C o2.size() ? -1 : (o1.size() == o2.size() ? 0 : 1);%0A                    %7D%0A                %7D);%0A%0A        Assert.assertEquals(2, result.size());%0A%0A        Assert.assertEquals(1, result.get(0).size());%0A        Assert.assertEquals(Integer.valueOf(2), result.get(0).get(0));%0A%0A        Assert.assertEquals(2, result.get(1).size());%0A        Assert.assertEquals(Integer.valueOf(1), result.get(1).get(0));%0A        Assert.assertEquals(Integer.valueOf(3), result.get(1).get(1));%0A    %7D%0A%7D%0A

add first test for 'lazy collections'