// 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 Example8Test 
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public Example8Test( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */


    static OPMGraph graph1;




    public void testCollectionProposal1() throws Exception
    {
        OPMFactory oFactory=new OPMFactory();
        CollectionFactory cFactory=new CollectionFactory(oFactory);

        Collection<Account> black=Collections.singleton(oFactory.newAccount("black"));
        Collection<Account> orange=Collections.singleton(oFactory.newAccount("orange"));
        
        Process p1=oFactory.newProcess("setG",
                                       black,
                                       "setG");


        Process p2=oFactory.newProcess("append",
// 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/Example8Test.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 Example8Test 
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public Example8Test( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */


    static OPMGraph graph1;




    public void testCollectionProposal1() throws Exception
    {
        OPMFactory oFactory=new OPMFactory();
        CollectionFactory cFactory=new CollectionFactory(oFactory);

        Collection<Account> black=Collections.singleton(oFactory.newAccount("black"));
        Collection<Account> orange=Collections.singleton(oFactory.newAccount("orange"));
        
        Process p1=oFactory.newProcess("setG",
                                       black,
                                       "setG");


        Process p2=oFactory.newProcess("append",
                                       black,