package org.sbolstandard.core2;

import org.junit.Test;

public class SBOLDocumentTest {

	@Test
	public void test_sample() {

	}

}

@@ -26,16 +26,71 @@
 core2;%0A%0A
+import java.net.URI;%0Aimport static org.junit.Assert.*;%0A
 import o
@@ -174,15 +174,1307 @@
 ple() %7B%0A
+%09%09%0A%09%09String prURI=%22http://partsregistry.org%22;%0A%09%09String prPrefix=%22pr%22;%0A%09%09SBOLDocument document = new SBOLDocument();%0A%09%09document.setDefaultURIprefix(prURI);%0A%09%09document.setTypesInURIs(true);%0A//%09%09document.addNamespace(URI.create(prURI), prPrefix);%0A%09%09%0A%09%09%0A%09%09String prURI1=%22http://partsregistry1.org%22;%0A%09%09String prPrefix1=%22pr1%22;%0A%09%09SBOLDocument document2 = new SBOLDocument();%0A%09%09document.setDefaultURIprefix(prURI1);%0A%09%09document.setTypesInURIs(true);%0A//%09%09document.addNamespace(URI.create(prURI1), prPrefix1);%0A%09%09%0A%09%09String SequenceDisplayID = %22ID%22;%0A%09%09String SequenceVersion = %221.0%22;%0A%09%09String SequenceElements = %22Element%22;%0A%09%09String SequenceURI = %22http://partsregistry.org/%22+SequenceDisplayID;%0A%09%09String createCopyID = %22ID%22;%0A%09%09String createCopyVersion = %221.0%22;%0A%09%09String createCopyURI = %22URI%22;%0A%09%09URI SeqURI = URI.create(SequenceURI);%0A%09%09Sequence seq = document.createSequence(SequenceDisplayID, SequenceVersion, SequenceElements, SeqURI);%0A//%09%09Sequence seq2 = (Sequence)document2.createCopy(seq, SequenceURI, SequenceDisplayID, SequenceVersion);%0A%09%09Sequence seq3 = (Sequence)document2.createCopy(seq);%0A%09%09%0A%09%09seq3.unsetWasDerivedFrom();%0A%09%09%0A%09%09%0A%09%09assertTrue(seq.equals(seq3));%0A%09%09assertEquals(seq, seq3);%0A//%09%09if(seq.equals(seq3))%7B%0A//%09%09%09System.out.println(%22True%22);%0A//%09%09%7D%0A//%09%09else%7BSystem.out.println(%22False%22);%7D%0A//%09%09%0A%09%09
 %0A%09%7D%0A%0A%7D%0A

Test for createCopy(TopLevel) method