-// //how the XML was generated
-// FieldUnit associatedFieldUnit = FieldUnit.NewInstance();
-// associatedFieldUnit.setUuid(fieldUnitUuid);
-// //sub derivates (DerivedUnit, DnaSample)
-// DerivedUnit typeSpecimen = DerivedUnit.NewInstance(SpecimenOrObservationType.Fossil);
-// typeSpecimen.setUuid(typeSpecimenUuid);
-//
-// //derivation events
-// DerivationEvent.NewSimpleInstance(associatedFieldUnit, typeSpecimen, DerivationEventType.ACCESSIONING());
-//
-// occurrenceService.save(associatedFieldUnit);
-// occurrenceService.save(typeSpecimen);
-//
-// //create name with type specimen
-// BotanicalName name = BotanicalName.PARSED_NAME("Campanula patual sec L.");
-// SpecimenTypeDesignation typeDesignation = SpecimenTypeDesignation.NewInstance();
-// typeDesignation.setTypeSpecimen(typeSpecimen);
-//
-// // create taxon with name and two taxon descriptions (one with
-// // IndividualsAssociations and a "described" voucher specimen, and an
-// // empty one)
-// Taxon taxon = Taxon.NewInstance(name, null);
-// taxon.setUuid(taxonUuid);
-// TaxonDescription taxonDescription = TaxonDescription.NewInstance();
-// taxonDescription.setUuid(taxonDescriptionUuid);
-// //add voucher
-// taxonDescription.addElement(IndividualsAssociation.NewInstance(associatedFieldUnit));
-// taxon.addDescription(taxonDescription);
-// //add type designation to name
-// name.addTypeDesignation(typeDesignation, false);
-// //add another taxon description to taxon which is not associated with a specimen thus should not be taken into account
-// taxon.addDescription(TaxonDescription.NewInstance());
-// taxonService.saveOrUpdate(taxon);
-//
-// commitAndStartNewTransaction(null);
-//
-// setComplete();
-// endTransaction();
-//
-// try {
-// writeDbUnitDataSetFile(new String[]{
-// "SpecimenOrObservationBase",
-// "SpecimenOrObservationBase_DerivationEvent",
-// "DerivationEvent",
-// "Sequence",
-// "Sequence_SingleRead",
-// "SingleRead",
-// "AmplificationResult",
-// "DescriptionElementBase",
-// "DescriptionBase",
-// "TaxonBase",
-// "TypeDesignationBase",
-// "TaxonNameBase",
-// "TaxonNameBase_TypeDesignationBase",
-// "HomotypicalGroup"}, "testListAssociatedAndTypedTaxa");
-// } catch (FileNotFoundException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// }
-//
-// System.out.println("associatedFieldUnit.getUuid() " + associatedFieldUnit.getUuid());
-// System.out.println("typeSpecimen.getUuid() "+typeSpecimen.getUuid());
-// System.out.println("taxonDescription.getUuid() "+taxonDescription.getUuid());
-// System.out.println("taxon.getUuid() "+taxon.getUuid());
-
+ // //how the XML was generated
+ // FieldUnit associatedFieldUnit = FieldUnit.NewInstance();
+ // associatedFieldUnit.setUuid(fieldUnitUuid);
+ // //sub derivates (DerivedUnit, DnaSample)
+ // DerivedUnit typeSpecimen =
+ // DerivedUnit.NewInstance(SpecimenOrObservationType.Fossil);
+ // typeSpecimen.setUuid(typeSpecimenUuid);
+ //
+ // //derivation events
+ // DerivationEvent.NewSimpleInstance(associatedFieldUnit, typeSpecimen,
+ // DerivationEventType.ACCESSIONING());
+ //
+ // occurrenceService.save(associatedFieldUnit);
+ // occurrenceService.save(typeSpecimen);
+ //
+ // //create name with type specimen
+ // BotanicalName name =
+ // BotanicalName.PARSED_NAME("Campanula patual sec L.");
+ // SpecimenTypeDesignation typeDesignation =
+ // SpecimenTypeDesignation.NewInstance();
+ // typeDesignation.setTypeSpecimen(typeSpecimen);
+ //
+ // // create taxon with name and two taxon descriptions (one with
+ // // IndividualsAssociations and a "described" voucher specimen, and an
+ // // empty one)
+ // Taxon taxon = Taxon.NewInstance(name, null);
+ // taxon.setUuid(taxonUuid);
+ // TaxonDescription taxonDescription = TaxonDescription.NewInstance();
+ // taxonDescription.setUuid(taxonDescriptionUuid);
+ // //add voucher
+ // taxonDescription.addElement(IndividualsAssociation.NewInstance(associatedFieldUnit));
+ // taxon.addDescription(taxonDescription);
+ // //add type designation to name
+ // name.addTypeDesignation(typeDesignation, false);
+ // //add another taxon description to taxon which is not associated with
+ // a specimen thus should not be taken into account
+ // taxon.addDescription(TaxonDescription.NewInstance());
+ // taxonService.saveOrUpdate(taxon);
+ //
+ // commitAndStartNewTransaction(null);
+ //
+ // setComplete();
+ // endTransaction();
+ //
+ // try {
+ // writeDbUnitDataSetFile(new String[]{
+ // "SpecimenOrObservationBase",
+ // "SpecimenOrObservationBase_DerivationEvent",
+ // "DerivationEvent",
+ // "Sequence",
+ // "Sequence_SingleRead",
+ // "SingleRead",
+ // "AmplificationResult",
+ // "DescriptionElementBase",
+ // "DescriptionBase",
+ // "TaxonBase",
+ // "TypeDesignationBase",
+ // "TaxonNameBase",
+ // "TaxonNameBase_TypeDesignationBase",
+ // "HomotypicalGroup"}, "testListAssociatedAndTypedTaxa");
+ // } catch (FileNotFoundException e) {
+ // // TODO Auto-generated catch block
+ // e.printStackTrace();
+ // }
+ //
+ // System.out.println("associatedFieldUnit.getUuid() " +
+ // associatedFieldUnit.getUuid());
+ // System.out.println("typeSpecimen.getUuid() "+typeSpecimen.getUuid());
+ // System.out.println("taxonDescription.getUuid() "+taxonDescription.getUuid());
+ // System.out.println("taxon.getUuid() "+taxon.getUuid());