@@ -0,0 +1,714 @@
+package com.insightfullogic.java8.test.chapter3;%0D%0A%0D%0Aimport static org.junit.Assert.*;%0D%0A%0D%0Aimport java.util.List;%0D%0Aimport java.util.function.Predicate;%0D%0A%0D%0Aimport org.junit.Test;%0D%0A%0D%0Aimport com.insightfullogic.java8.answers.chapter3.FilterUsingReduce;%0D%0A%0D%0Apublic class FilterUsingReduceTest %7B%0D%0A%0D%0A%09@Test%0D%0A%09public void test() %7B%0D%0A%09%09fail(%22Not yet implemented%22);%0D%0A%09%7D%0D%0A%0D%0A%09private %3CI%3E void assertFiltered(Predicate%3CI%3E predicate, List%3CI%3E input, List%3CI%3E exceptedOutput) %7B%0D%0A%09%09List%3CI%3E output = FilterUsingReduce.filter(input.stream(), predicate);%0D%0A%09%09assertEquals(exceptedOutput, output);%0D%0A%0D%0A%09%09List%3CI%3E parallelOutput = FilterUsingReduce.filter(input.parallelStream(), predicate);%0D%0A%09%09assertEquals(exceptedOutput, output);%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

add test for FilterUsingReduce in chapter3