// Path: opm/src/main/java/org/openprovenance/model/collections/CollectionFactory.java
// public class CollectionFactory  implements CollectionURIs {
// 
//     final private OPMFactory oFactory;
// 
//     public CollectionFactory(OPMFactory oFactory) {
//         this.oFactory=oFactory;
//     }
//    
// 
// //     public WasDerivedFrom newContained(String id,
// //                                        ArtifactRef aid1,
// //                                        ArtifactRef aid2,
// //                                        Collection<AccountRef> accounts) {
// //         return oFactory.newWasDerivedFrom(id,aid1,aid2,CONTAINED,accounts);
// //     }
// 
//     public WasDerivedFrom newContained(String id,
//                                        Artifact a1,
//                                        Artifact a2,
//                                        Collection<Account> accounts) {
//         return oFactory.newWasDerivedFrom(id,a1,a2,CONTAINED,accounts);
//     }
// 
// 
// //     public WasDerivedFrom newWasIdenticalTo(String id,
// //                                             ArtifactRef aid1,
// //                                             ArtifactRef aid2,
// //                                             Collection<AccountRef> accounts) {
// //         return oFactory.newWasDerivedFrom(id,aid1,aid2,WASIDENTICALTO,accounts);
// //     }
// 
//     public WasDerivedFrom newWasIdenticalTo(String id,
//                                             Artifact a1,
//                                             Artifact a2,
//                                             Collection<Account> accounts) {
//         return oFactory.newWasDerivedFrom(id,a1,a2,WASIDENTICALTO,accounts);
//     }
// 
// 
// 
// 
// 
// }


import java.io.File;
import java.io.StringWriter;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.JAXBException;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.openprovenance.model.collections.CollectionFactory;
package org.openprovenance.model;


/**
 * Unit test for simple App.
 */
public class CycleTest 
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public CycleTest( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */
    public static Test suite()
    {
        return new TestSuite( CycleTest.class );
    }

    static OPMGraph graph1;
    static OPMGraph graph2;

    /** Creates and serialises an OPM graph. */

    public void testCycle1() throws JAXBException,  java.io.FileNotFoundException,  java.io.IOException
    {
        OPMFactory oFactory=new OPMFactory();
// Path: opm/src/main/java/org/openprovenance/model/collections/CollectionFactory.java
// public class CollectionFactory  implements CollectionURIs {
// 
//     final private OPMFactory oFactory;
// 
//     public CollectionFactory(OPMFactory oFactory) {
//         this.oFactory=oFactory;
//     }
//    
// 
// //     public WasDerivedFrom newContained(String id,
// //                                        ArtifactRef aid1,
// //                                        ArtifactRef aid2,
// //                                        Collection<AccountRef> accounts) {
// //         return oFactory.newWasDerivedFrom(id,aid1,aid2,CONTAINED,accounts);
// //     }
// 
//     public WasDerivedFrom newContained(String id,
//                                        Artifact a1,
//                                        Artifact a2,
//                                        Collection<Account> accounts) {
//         return oFactory.newWasDerivedFrom(id,a1,a2,CONTAINED,accounts);
//     }
// 
// 
// //     public WasDerivedFrom newWasIdenticalTo(String id,
// //                                             ArtifactRef aid1,
// //                                             ArtifactRef aid2,
// //                                             Collection<AccountRef> accounts) {
// //         return oFactory.newWasDerivedFrom(id,aid1,aid2,WASIDENTICALTO,accounts);
// //     }
// 
//     public WasDerivedFrom newWasIdenticalTo(String id,
//                                             Artifact a1,
//                                             Artifact a2,
//                                             Collection<Account> accounts) {
//         return oFactory.newWasDerivedFrom(id,a1,a2,WASIDENTICALTO,accounts);
//     }
// 
// 
// 
// 
// 
// }


// Path: opm/src/test/java/org/openprovenance/model/CycleTest.java
import java.io.File;
import java.io.StringWriter;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.JAXBException;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.openprovenance.model.collections.CollectionFactory;

package org.openprovenance.model;


/**
 * Unit test for simple App.
 */
public class CycleTest 
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public CycleTest( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */
    public static Test suite()
    {
        return new TestSuite( CycleTest.class );
    }

    static OPMGraph graph1;
    static OPMGraph graph2;

    /** Creates and serialises an OPM graph. */

    public void testCycle1() throws JAXBException,  java.io.FileNotFoundException,  java.io.IOException
    {
        OPMFactory oFactory=new OPMFactory();
        CollectionFactory cFactory=new CollectionFactory(oFactory);