@@ -0,0 +1,2937 @@
+/*%0A %09(c) Copyright 2006 Hewlett-Packard Development Company, LP%0A %09All rights reserved - see end of file.%0A %09$Id: TestAsCollection.java,v 1.1 2006-01-17 08:45:53 chris-dollin Exp $%0A*/%0A%0Apackage com.hp.hpl.jena.util.iterator.test;%0A%0Aimport java.util.*;%0A%0Aimport com.hp.hpl.jena.rdf.model.test.ModelTestBase;%0Aimport com.hp.hpl.jena.util.iterator.WrappedIterator;%0A%0Apublic class TestAsCollection extends ModelTestBase%0A    %7B%0A    public TestAsCollection( String name )%0A        %7B super( name ); %7D%0A%0A    public void testAsList()%0A        %7B%0A        testReturnsList( %22%22 );%0A        testReturnsList( %22understanding%22 );%0A        testReturnsList( %22understanding is%22 );%0A        testReturnsList( %22understanding is a three-edged sword%22 );%0A        %7D%0A    %0A    public void testAsSet()%0A        %7B%0A        testReturnsSet( %22%22 );%0A        testReturnsSet( %22x%22 );%0A        testReturnsSet( %22x x%22 );%0A        testReturnsSet( %22x y x%22 );%0A        testReturnsSet( %22a b c d e f a c f x%22 );%0A        testReturnsSet( %22the avalanch has already started%22 );%0A        %7D%0A%0A    private Set testReturnsSet( String elements )%0A        %7B%0A        Set result = setOfStrings( elements );%0A        assertEquals( result, WrappedIterator.create( result.iterator() ).toSet() );%0A        return result;%0A        %7D%0A%0A    private void testReturnsList( String elements )%0A        %7B%0A        List L = listOfStrings( elements );%0A        assertEquals( L, WrappedIterator.create( L.iterator() ).toList() );%0A        %7D%0A    %7D%0A%0A%0A/*%0A * (c) Copyright 2006 Hewlett-Packard Development Company, LP%0A * All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted provided that the following conditions%0A * are met:%0A * 1. Redistributions of source code must retain the above copyright%0A *    notice, this list of conditions and the following disclaimer.%0A * 2. Redistributions in binary form must reproduce the above copyright%0A *    notice, this list of conditions and the following disclaimer in the%0A *    documentation and/or other materials provided with the distribution.%0A * 3. The name of the author may not be used to endorse or promote products%0A *    derived from this software without specific prior written permission.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE AUTHOR %60%60AS IS'' AND ANY EXPRESS OR%0A * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES%0A * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.%0A * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,%0A * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT%0A * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF%0A * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A*/

Check in the test case - oops.