Program: 12620
Project: 12620
Buggy source:
@Test public void test_memberAnnotations() throws Exception {
  SBOLDocument document=new SBOLDocument();
  document.setComplete(true);
  document.setDefaultURIprefix("String_Node_Str");
  document.addNamespaceBinding(NamespaceBinding("String_Node_Str","String_Node_Str"));
  document.addNamespaceBinding(NamespaceBinding("String_Node_Str","String_Node_Str"));
  String id="String_Node_Str";
  URI source=URI.create(id + "String_Node_Str");
  URI language=URI.create(id + "String_Node_Str");
  URI framework=URI.create(id + "String_Node_Str");
  Collection myParts=document.createCollection("String_Node_Str",VERSION_1_0);
  myParts.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  Model someModel=document.createModel(id,VERSION_1_0,source,language,framework);
  someModel.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  ModuleDefinition someModDef=document.createModuleDefinition("String_Node_Str",VERSION_1_0);
  someModDef.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  Set<URI> interactionType=new HashSet<URI>();
  interactionType.add(URI.create("String_Node_Str"));
  Interaction someInteraction=someModDef.createInteraction("String_Node_Str",interactionType);
  Module someModule=someModDef.createModule("String_Node_Str","String_Node_Str",VERSION_1_0);
  String someMapsTo_id="String_Node_Str";
  String seq_id="String_Node_Str";
  Sequence someSeq=document.createSequence(seq_id,VERSION_1_0,seq_id + "String_Node_Str",URI.create("String_Node_Str"));
  someSeq.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  Set<URI> types=new HashSet<URI>();
  types.add(URI.create("String_Node_Str"));
  ComponentDefinition someCompDef=document.createComponentDefinition("String_Node_Str",VERSION_1_0,types);
  someCompDef.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  Component someComponent=someCompDef.createComponent("String_Node_Str",AccessType.PUBLIC,"String_Node_Str",VERSION_1_0);
  someComponent.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  SequenceAnnotation someSequenceAnnotation=someCompDef.createSequenceAnnotation("String_Node_Str","String_Node_Str",1,10);
  someSequenceAnnotation.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  SequenceAnnotation someSequenceAnnotation2=someCompDef.createSequenceAnnotation("String_Node_Str","String_Node_Str",1,OrientationType.INLINE);
  SequenceConstraint someSequenceConstraint=someCompDef.createSequenceConstraint("String_Node_Str",RestrictionType.PRECEDES,"String_Node_Str","String_Node_Str");
  someSequenceConstraint.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  GenericTopLevel someGenericTopLevel=document.createGenericTopLevel("String_Node_Str",VERSION_1_0,new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  someGenericTopLevel.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  runTest("String_Node_Str",document,"String_Node_Str");
}

Fixed version (ground truth):
@Test public void test_memberAnnotations() throws Exception {
  SBOLDocument document=new SBOLDocument();
  document.setComplete(true);
  document.setDefaultURIprefix("String_Node_Str");
  document.addNamespaceBinding(NamespaceBinding("String_Node_Str","String_Node_Str"));
  document.addNamespaceBinding(NamespaceBinding("String_Node_Str","String_Node_Str"));
  String id="String_Node_Str";
  URI source=URI.create(id + "String_Node_Str");
  Collection myParts=document.createCollection("String_Node_Str",VERSION_1_0);
  myParts.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  Model someModel=document.createModel(id,VERSION_1_0,source,Model.SBML,SystemsBiologyOntology.CONTINUOUS_FRAMEWORK);
  someModel.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  ModuleDefinition someModDef=document.createModuleDefinition("String_Node_Str",VERSION_1_0);
  someModDef.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  Set<URI> interactionType=new HashSet<URI>();
  interactionType.add(SystemsBiologyOntology.NON_COVALENT_BINDING);
  Interaction someInteraction=someModDef.createInteraction("String_Node_Str",interactionType);
  Module someModule=someModDef.createModule("String_Node_Str","String_Node_Str",VERSION_1_0);
  String someMapsTo_id="String_Node_Str";
  String seq_id="String_Node_Str";
  Sequence someSeq=document.createSequence(seq_id,VERSION_1_0,seq_id + "String_Node_Str",Sequence.IUPAC_DNA);
  someSeq.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  Set<URI> types=new HashSet<URI>();
  types.add(ComponentDefinition.DNA);
  ComponentDefinition someCompDef=document.createComponentDefinition("String_Node_Str",VERSION_1_0,types);
  someCompDef.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  someCompDef.addRole(SequenceOntology.PROMOTER);
  Component someComponent=someCompDef.createComponent("String_Node_Str",AccessType.PUBLIC,"String_Node_Str",VERSION_1_0);
  someComponent.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  SequenceAnnotation someSequenceAnnotation=someCompDef.createSequenceAnnotation("String_Node_Str","String_Node_Str",1,10);
  someSequenceAnnotation.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  SequenceAnnotation someSequenceAnnotation2=someCompDef.createSequenceAnnotation("String_Node_Str","String_Node_Str",1,OrientationType.INLINE);
  SequenceConstraint someSequenceConstraint=someCompDef.createSequenceConstraint("String_Node_Str",RestrictionType.PRECEDES,"String_Node_Str","String_Node_Str");
  someSequenceConstraint.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  GenericTopLevel someGenericTopLevel=document.createGenericTopLevel("String_Node_Str",VERSION_1_0,new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  someGenericTopLevel.addAnnotation(new Annotation(NamedProperty(new QName("String_Node_Str","String_Node_Str","String_Node_Str"),"String_Node_Str")));
  runTest("String_Node_Str",document,"String_Node_Str");
}