@@ -0,0 +1,1190 @@
+package com.tinkerpop.pipes.util;%0A%0Aimport com.tinkerpop.pipes.IdentityPipe;%0Aimport junit.framework.TestCase;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0A/**%0A * @author Darrick Wiebe%0A */%0Apublic class HasCountPipeTest extends TestCase %7B%0A%0A    public void testPipeBasic() %7B%0A        List%3CString%3E names = Arrays.asList(%22marko%22, %22povel%22, %22peter%22, %22josh%22);%0A        HasCountPipe%3CString%3E pipe1 = new HasCountPipe%3CString%3E(1, 2);%0A        pipe1.setStarts(names);%0A        assertFalse(pipe1.next());%0A        assertFalse(pipe1.hasNext());%0A%0A        HasCountPipe%3CString%3E pipe2 = new HasCountPipe%3CString%3E(1, 4);%0A        pipe2.setStarts(names);%0A        assertTrue(pipe2.next());%0A        assertFalse(pipe2.hasNext());%0A%0A        HasCountPipe%3CString%3E pipe3 = new HasCountPipe%3CString%3E(4, 10);%0A        pipe3.setStarts(names);%0A        assertTrue(pipe3.next());%0A        assertFalse(pipe3.hasNext());%0A%0A        pipe3.reset();%0A        pipe3.setStarts(names);%0A        assertTrue(pipe3.next());%0A        assertFalse(pipe3.hasNext());%0A%0A        HasCountPipe%3CString%3E pipe4 = new HasCountPipe%3CString%3E(5, 10);%0A        pipe4.setStarts(names);%0A        assertFalse(pipe4.next());%0A        assertFalse(pipe4.hasNext());%0A    %7D%0A%7D%0A

Test the HasCountPipe.