View Javadoc
1   package org.kuali.ole.docstore.model.jaxb.work.license.onixpl;
2   
3   import org.apache.commons.io.FileUtils;
4   import org.junit.Test;
5   import org.kuali.ole.docstore.model.xmlpojo.work.license.onixpl.*;
6   import org.slf4j.Logger;
7   import org.slf4j.LoggerFactory;
8   
9   import java.io.File;
10  import java.net.URL;
11  import java.util.List;
12  
13  import static org.junit.Assert.assertEquals;
14  import static org.junit.Assert.assertNotNull;
15  
16  /**
17   * Created by IntelliJ IDEA.
18   * User: Pranitha
19   * Date: 5/30/12
20   * Time: 3:24 PM
21   * To change this template use File | Settings | File Templates.
22   */
23  public class WorkLicenseOnixplRecordConverter_UT {
24  
25      public static final Logger LOG = LoggerFactory.getLogger(WorkLicenseOnixplRecordConverter_UT.class);
26  
27      @Test
28      public void unmarshal() {
29          WorkLicenseOnixplRecordConverter jaxbUnmarshal = new WorkLicenseOnixplRecordConverter();
30          URL resource = getClass().getResource("/org/kuali/ole/license.onixsample.xml");
31          try {
32              File file = new File(resource.toURI());
33              String OnixXML = FileUtils.readFileToString(file);
34              LOG.info(OnixXML);
35              ONIXPublicationsLicenseMessage onixElement = jaxbUnmarshal.unmarshal(OnixXML);
36              List<org.kuali.ole.docstore.model.xmlpojo.work.license.onixpl.PublicationsLicenseExpression.LicenseDocumentText>
37                      licenseDocumentText = onixElement.getPublicationsLicenseExpression().get(0).getLicenseDocumentText();
38              LOG.info("DocumentLabel..." + licenseDocumentText.get(0).getDocumentLabel().getValue());
39              String DocumentLable = licenseDocumentText.get(0).getDocumentLabel().getValue();
40              assertEquals(DocumentLable, "DocumentLabel");
41              org.kuali.ole.docstore.model.xmlpojo.work.license.onixpl.PublicationsLicenseExpression.LicenseDetail
42                      licenseDetail = onixElement.getPublicationsLicenseExpression().get(0).getLicenseDetail();
43              LOG.info("licenseIdentifier......." + licenseDetail.getLicenseIdentifier());
44              List<org.kuali.ole.docstore.model.xmlpojo.work.license.onixpl.PublicationsLicenseExpression.
45                      LicenseDetail.LicenseIdentifier> licenseIdentifierList
46                      = licenseDetail.getLicenseIdentifier();
47              LOG.info("License Identifier Value......" + licenseIdentifierList.get(0).getIDValue().getValue());
48              String licenseIdentifierValue = licenseIdentifierList.get(0).getIDValue().getValue();
49              assertEquals(licenseIdentifierValue, "LicenseIdentifierIDValue");
50  
51              PartyName addresseeName = (PartyName) onixElement.getHeader().getAddressee().get(0).getAddresseeName();
52              LOG.info("addressee namr is...." + addresseeName.getValue());
53              String addresseeNameValue = addresseeName.getValue();
54              assertEquals(addresseeNameValue, "AddresseeName2");
55  
56              PartyName senderName = (PartyName) onixElement.getHeader().getSender().getSenderName();
57              LOG.info("Sender name is...." + senderName.getValue());
58              String senderNameValue = senderName.getValue();
59              assertEquals(senderNameValue, "SenderName2");
60              LOG.info(onixElement.getDatestamp());
61              LOG.info(onixElement.getVersion());
62              ONIXPublicationsLicenseMessage.Header.Addressee.AddresseeIdentifier.AddresseeIDType
63                      addresseeIDType = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType();
64              ONIXPublicationsLicenseMessage.Header.Addressee.AddresseeIdentifier.IDTypeName
65                      idTypeName = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName();
66              ONIXPublicationsLicenseMessage.Header.Addressee.AddresseeIdentifier.IDValue
67                      idValue = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue();
68              String addresseeIdentifierDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getDatestamp();
69              String addresseeIdentifierSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getSourcename();
70              String addresseeIdentifierSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getSourcetype();
71              String addresseContactValue = onixElement.getHeader().getAddressee().get(0).getAddresseeContact().getValue();
72              String addresseContactDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeContact().getDatestamp();
73              String addresseContactSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeContact().getSourcename();
74              String addresseContactSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeContact().getSourcetype();
75              String addresseDateStamp = onixElement.getHeader().getAddressee().get(0).getDatestamp();
76              String addresseSourceType = onixElement.getHeader().getAddressee().get(0).getSourcename();
77              String addresseSourceName = onixElement.getHeader().getAddressee().get(0).getSourcetype();
78              String addresseEmailValue = onixElement.getHeader().getAddressee().get(0).getAddresseeEmail().getValue();
79              String addresseEmailDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeEmail().getDatestamp();
80              String addresseEmailSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeEmail().getSourcename();
81              String addresseEmailSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeEmail().getSourcetype();
82              String messageNumberDateStamp = onixElement.getHeader().getMessageNumber().getDatestamp();
83              String messageNumberSourceName = onixElement.getHeader().getMessageNumber().getSourcename();
84              String messageNumberSourceType = onixElement.getHeader().getMessageNumber().getSourcetype();
85              String messageNumberValue = onixElement.getHeader().getMessageNumber().getValue();
86              String messageRepeatDateStamp = onixElement.getHeader().getMessageRepeat().getDatestamp();
87              String messageRepeatSourceName = onixElement.getHeader().getMessageRepeat().getSourcename();
88              String messageRepeatSourceType = onixElement.getHeader().getMessageRepeat().getSourcetype();
89              int messageRepeatValue = onixElement.getHeader().getMessageRepeat().getValue();
90              String sentDateTimeDateStamp = onixElement.getHeader().getSentDateTime().getDatestamp();
91              String sentDateTimeSourceName = onixElement.getHeader().getSentDateTime().getSourcename();
92              String sentDateTimeSourceType = onixElement.getHeader().getSentDateTime().getSourcetype();
93              String sentDateTimeValue = onixElement.getHeader().getSentDateTime().getValue();
94              String messageNoteDateStamp = onixElement.getHeader().getMessageNote().getDatestamp();
95              String messageNoteSourceName = onixElement.getHeader().getMessageNote().getSourcename();
96              String messageNoteSourceType = onixElement.getHeader().getMessageNote().getSourcetype();
97              String messageNoteValue = onixElement.getHeader().getMessageNote().getValue();
98              String headerDateStamp = onixElement.getHeader().getDatestamp();
99              String headerSourceName = onixElement.getHeader().getSourcename();
100             String headerSourceType = onixElement.getHeader().getSourcetype();
101             String publicationLisenceMessageDateStamp = onixElement.getDatestamp();
102             String publicationLisenceMessageSourceName = onixElement.getSourcename();
103             String publicationLisenceMessageSourceType = onixElement.getSourcetype();
104             String expressionDetailDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getExpressionDetail().getDatestamp();
105             String expressionDetailSourceName = onixElement.getPublicationsLicenseExpression().get(0).getExpressionDetail().getSourcename();
106             String expressionDetailSourceType = onixElement.getPublicationsLicenseExpression().get(0).getExpressionDetail().getSourcetype();
107             String definitionDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getDefinitions().getDatestamp();
108             String definitionSourceName = onixElement.getPublicationsLicenseExpression().get(0).getDefinitions().getSourcename();
109             String definitionSourceType = onixElement.getPublicationsLicenseExpression().get(0).getDefinitions().getSourcetype();
110             String lisenceGrantDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getLicenseGrant().getDatestamp();
111             String lisenceGrantSourceName = onixElement.getPublicationsLicenseExpression().get(0).getLicenseGrant().getSourcename();
112             String lisenceGrantSourceType = onixElement.getPublicationsLicenseExpression().get(0).getLicenseGrant().getSourcetype();
113             String usageTermsDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getUsageTerms().getDatestamp();
114             String usageTermsSourceName = onixElement.getPublicationsLicenseExpression().get(0).getUsageTerms().getSourcename();
115             String usageTermsSourceType = onixElement.getPublicationsLicenseExpression().get(0).getUsageTerms().getSourcetype();
116             String supplyTermsDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getSupplyTerms().getDatestamp();
117             String supplyTermsSourceName = onixElement.getPublicationsLicenseExpression().get(0).getSupplyTerms().getSourcename();
118             String supplyTermsSourceType = onixElement.getPublicationsLicenseExpression().get(0).getSupplyTerms().getSourcetype();
119             String continuigAccessTermsDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getContinuingAccessTerms().getDatestamp();
120             String continuigAccessTermsSourceName = onixElement.getPublicationsLicenseExpression().get(0).getContinuingAccessTerms().getSourcename();
121             String continuigAccessTermsSourceType = onixElement.getPublicationsLicenseExpression().get(0).getContinuingAccessTerms().getSourcetype();
122             String paymentTermsDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getPaymentTerms().getDatestamp();
123             String paymentTermsSourceName = onixElement.getPublicationsLicenseExpression().get(0).getPaymentTerms().getSourcename();
124             String paymentTermsSourceType = onixElement.getPublicationsLicenseExpression().get(0).getPaymentTerms().getSourcetype();
125             String generalTermsDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getGeneralTerms().getDatestamp();
126             String generalTermsSourceName = onixElement.getPublicationsLicenseExpression().get(0).getGeneralTerms().getSourcename();
127             String generalTermsSourceType = onixElement.getPublicationsLicenseExpression().get(0).getGeneralTerms().getSourcetype();
128             String publicationsLicenseExpressionDateStamp = onixElement.getPublicationsLicenseExpression().get(0).getDatestamp();
129             String publicationsLicenseExpressionSourceName = onixElement.getPublicationsLicenseExpression().get(0).getSourcename();
130             String publicationsLicenseExpressionSourceType = onixElement.getPublicationsLicenseExpression().get(0).getSourcetype();
131             String publicationsLicenseExpressionVersion = onixElement.getPublicationsLicenseExpression().get(0).getVersion();
132             String idValueDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue().getDatestamp();
133             String idValueSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue().getSourcename();
134             String idValueSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue().getSourcetype();
135             String idValueValue = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue().getValue();
136             String idTypeNameDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName().getDatestamp();
137             String idTypeNameSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName().getSourcename();
138             String idTypeNameSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName().getSourcetype();
139             String idTypeNameValue = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName().getValue();
140             String addressIdTypeDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType().getDatestamp();
141             String addressIdTypeSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType().getSourcename();
142             String addressIdTypeSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType().getSourcetype();
143             String addressIdTypeValue = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType().getValue();
144             String senderIdentifierDateStamp = onixElement.getHeader().getSender().getSenderIdentifier().getDatestamp();
145             String senderIdentifierSourceName = onixElement.getHeader().getSender().getSenderIdentifier().getSourcename();
146             String senderIdentifierSourceType = onixElement.getHeader().getSender().getSenderIdentifier().getSourcetype();
147             ONIXPublicationsLicenseMessage.Header.Sender.SenderIdentifier.IDTypeName senderIdentifierIdTypeName = onixElement.getHeader().getSender().getSenderIdentifier().getIDTypeName();
148             ONIXPublicationsLicenseMessage.Header.Sender.SenderIdentifier.IDValue senderIdentifierIdValue = onixElement.getHeader().getSender().getSenderIdentifier().getIDValue();
149             String senderContactDateStamp = onixElement.getHeader().getSender().getSenderContact().getDatestamp();
150             String senderContactSourceName = onixElement.getHeader().getSender().getSenderContact().getSourcename();
151             String senderContactSourceType = onixElement.getHeader().getSender().getSenderContact().getSourcetype();
152             String senderContactValue = onixElement.getHeader().getSender().getSenderContact().getValue();
153             String senederIdTypeDatestamp = onixElement.getHeader().getSender().getSenderIdentifier().getSenderIDType().getDatestamp();
154             String senederIdTypeSourceName = onixElement.getHeader().getSender().getSenderIdentifier().getSenderIDType().getSourcename();
155             String senederIdTypeSourceType = onixElement.getHeader().getSender().getSenderIdentifier().getSenderIDType().getSourcetype();
156             String senederIdTypeValue = onixElement.getHeader().getSender().getSenderIdentifier().getSenderIDType().getValue();
157             String senederEmailDateStamp = onixElement.getHeader().getSender().getSenderEmail().getDatestamp();
158             String senederEmailSourceName = onixElement.getHeader().getSender().getSenderEmail().getSourcename();
159             String senederEmailSourceType = onixElement.getHeader().getSender().getSenderEmail().getSourcetype();
160             String senederEmailValue = onixElement.getHeader().getSender().getSenderEmail().getValue();
161             String senderDateStamp = onixElement.getHeader().getSender().getDatestamp();
162             String senderEmailDateStamp = onixElement.getHeader().getSender().getSenderEmail().getDatestamp();
163             String senderEmailSourceANme = onixElement.getHeader().getSender().getSenderEmail().getSourcename();
164             String senderEmailSourcetype = onixElement.getHeader().getSender().getSenderEmail().getSourcetype();
165             String senderSourceType = onixElement.getHeader().getSender().getSourcetype();
166             String addresseIdTypeDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType().getDatestamp();
167             String addresseIdTypeSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType().getSourcename();
168             String addresseIdTypeSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType().getSourcetype();
169             String addresseIdTypeValue = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getAddresseeIDType().getValue();
170             String senderSourceName = onixElement.getHeader().getSender().getSourcename();
171             String AddresseIdentifierIdTypeNameDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName().getDatestamp();
172             String AddresseIdentifierIdTypeNameSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName().getSourcename();
173             String AddresseIdentifierIdTypeNameSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName().getSourcename();
174             String AddresseIdentifierIdTypeNameValue = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDTypeName().getValue();
175             String AddresseIdentifierIdValueDateStamp = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue().getDatestamp();
176             String AddresseIdentifierIdValueSourceName = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue().getSourcename();
177             String AddresseIdentifierIdValueSourceType = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue().getSourcetype();
178             String AddresseIdentifierIdValueValue = onixElement.getHeader().getAddressee().get(0).getAddresseeIdentifier().getIDValue().getValue();
179             String senderIdentifierIdTypeNameDateStamp = onixElement.getHeader().getSender().getSenderIdentifier().getIDTypeName().getDatestamp();
180             String senderIdentifierIdTypeNameSourceName = onixElement.getHeader().getSender().getSenderIdentifier().getIDTypeName().getSourcename();
181             String senderIdentifierIdTypeNameSourceType = onixElement.getHeader().getSender().getSenderIdentifier().getIDTypeName().getSourcetype();
182             String senderIdentifierIdTypeNameValue = onixElement.getHeader().getSender().getSenderIdentifier().getIDTypeName().getValue();
183             String senderIdentifierIdValueDateStamp = onixElement.getHeader().getSender().getSenderIdentifier().getIDValue().getDatestamp();
184             String senderIdentifierIdValueSourceName = onixElement.getHeader().getSender().getSenderIdentifier().getIDValue().getSourcename();
185             String senderIdentifierIdValueSourceType = onixElement.getHeader().getSender().getSenderIdentifier().getIDValue().getSourcetype();
186             String senderIdentifierIdValueValue = onixElement.getHeader().getSender().getSenderIdentifier().getIDValue().getValue();
187 
188             Annotation.Authority authority = new Annotation.Authority();
189             authority.setDatestamp("12/12/2012");
190             authority.setSourcename("sourcename");
191             authority.setSourcetype("sourcetype");
192             authority.setValue("value");
193             assertNotNull(authority.getDatestamp());
194             assertNotNull(authority.getSourcename());
195             assertNotNull(authority.getSourcetype());
196             assertNotNull(authority.getValue());
197             Annotation.Authority authority1 = new Annotation.Authority();
198             authority1.setSourcetype(null);
199             assertNotNull(authority1.getSourcetype());
200 
201             Annotation.AnnotationType annotationType = new Annotation.AnnotationType();
202             annotationType.setDatestamp("12/12/2012");
203             annotationType.setSourcename("sourcename");
204             annotationType.setValue(AnnotationTypeCode.ONIX_PL_ACKNOWLEDGEMENT_WORDING);
205             annotationType.setSourcetype("sourceType");
206             assertNotNull(annotationType.getDatestamp());
207             assertNotNull(annotationType.getSourcename());
208             assertNotNull(annotationType.getSourcetype());
209             assertNotNull(annotationType.getValue());
210             Annotation.AnnotationType annotationType2 = new Annotation.AnnotationType();
211             annotationType2.setSourcetype(null);
212             assertNotNull(annotationType2.getSourcetype());
213 
214             Annotation.AnnotationText annotationText = new Annotation.AnnotationText();
215             annotationText.setDatestamp("12/12/2012");
216             annotationText.setSourcename("sourcename");
217             annotationText.setSourcetype("sourceType");
218             annotationText.setValue("value");
219             annotationText.setLanguage("english");
220             assertNotNull(annotationText.getDatestamp());
221             assertNotNull(annotationText.getSourcename());
222             assertNotNull(annotationText.getSourcetype());
223             assertNotNull(annotationText.getValue());
224             assertNotNull(annotationText.getLanguage());
225 
226             Annotation.AnnotationText annotationText1 = new Annotation.AnnotationText();
227             annotationText1.setSourcetype(null);
228             assertNotNull(annotationText1.getSourcetype());
229 
230             Annotation annotation = new Annotation();
231             annotation.setAnnotationText(annotationText);
232             annotation.setAnnotationType(annotationType);
233             annotation.setAuthority(authority);
234             annotation.setDatestamp("12/12/2012");
235             annotation.setSourcename("sourcename");
236             annotation.setSourcetype("sourceType");
237             assertNotNull(annotation.getAnnotationText());
238             assertNotNull(annotation.getAnnotationType());
239             assertNotNull(annotation.getAuthority());
240             assertNotNull(annotation.getDatestamp());
241             assertNotNull(annotation.getSourcename());
242             assertNotNull(annotation.getSourcetype());
243 
244             Annotation annotation1 = new Annotation();
245             annotation1.setSourcetype(null);
246             assertNotNull(annotation1.getSourcetype());
247 
248             LicenseDocumentReference.SectionDesignation sectionDesignation = new LicenseDocumentReference.SectionDesignation();
249             sectionDesignation.setDatestamp("12/12/2012");
250             sectionDesignation.setSourcename("sourcename");
251             sectionDesignation.setSourcetype("sourceType");
252             sectionDesignation.setValue("value");
253             assertNotNull(sectionDesignation.getDatestamp());
254             assertNotNull(sectionDesignation.getSourcename());
255             assertNotNull(sectionDesignation.getSourcetype());
256             assertNotNull(sectionDesignation.getValue());
257             LicenseDocumentReference.SectionDesignation sectionDesignation1 = new LicenseDocumentReference.SectionDesignation();
258             sectionDesignation1.setSourcetype(null);
259             assertNotNull(sectionDesignation1.getSourcetype());
260 
261             SectionIdentifier.SectionIDType sectionIDType = new SectionIdentifier.SectionIDType();
262             sectionIDType.setValue(SectionIDTypeCode.ONIX_PL_DOI);
263             sectionIDType.setDatestamp("12/12/2012");
264             sectionIDType.setSourcename("sourcename");
265             sectionIDType.setSourcetype("sourceType");
266             assertNotNull(sectionIDType.getDatestamp());
267             assertNotNull(sectionIDType.getSourcename());
268             assertNotNull(sectionIDType.getSourcetype());
269             assertNotNull(sectionIDType.getValue());
270 
271             SectionIdentifier.SectionIDType sectionIDType1 = new SectionIdentifier.SectionIDType();
272             sectionIDType1.setSourcetype(null);
273             assertNotNull(sectionIDType1.getSourcetype());
274 
275             SectionIdentifier.IDValue idValue1 = new SectionIdentifier.IDValue();
276             idValue1.setDatestamp("12/12/2012");
277             idValue1.setSourcename("sourcename");
278             idValue1.setSourcetype("sourceType");
279             idValue1.setValue("value");
280             assertNotNull(idValue1.getDatestamp());
281             assertNotNull(idValue1.getSourcename());
282             assertNotNull(idValue1.getSourcetype());
283             assertNotNull(idValue1.getValue());
284 
285             SectionIdentifier.IDValue idValue2 = new SectionIdentifier.IDValue();
286             idValue2.setSourcetype(null);
287             assertNotNull(idValue2.getSourcetype());
288 
289             SectionIdentifier sectionIdentifier = new SectionIdentifier();
290             sectionIdentifier.setIDValue(idValue1);
291             sectionIdentifier.setSectionIDType(sectionIDType);
292             sectionIdentifier.setDatestamp("12/12/2012");
293             sectionIdentifier.setSourcename("sourcename");
294             sectionIdentifier.setSourcetype("sourceType");
295             assertNotNull(sectionIdentifier.getSectionIDType());
296             assertNotNull(sectionIdentifier.getIDValue());
297             assertNotNull(sectionIdentifier.getDatestamp());
298             assertNotNull(sectionIdentifier.getSourcename());
299             assertNotNull(sectionIdentifier.getSourcetype());
300 
301             SectionIdentifier sectionIdentifier1 = new SectionIdentifier();
302             sectionIdentifier1.setSourcetype(null);
303             assertNotNull(sectionIdentifier1.getSourcetype());
304 
305 
306             LicenseDocumentReference.DocumentLabel documentLabel = new LicenseDocumentReference.DocumentLabel();
307             documentLabel.setDatestamp("12/12/2012");
308             documentLabel.setSourcename("sourcename");
309             documentLabel.setSourcetype("sourceType");
310             documentLabel.setValue("value");
311             assertNotNull(documentLabel.getDatestamp());
312             assertNotNull(documentLabel.getSourcename());
313             assertNotNull(documentLabel.getSourcetype());
314             assertNotNull(documentLabel.getValue());
315             LicenseDocumentReference.DocumentLabel documentLabel1 = new LicenseDocumentReference.DocumentLabel();
316             documentLabel1.setSourcetype(null);
317             assertNotNull(documentLabel1.getSourcetype());
318 
319             LicenseDocumentReference licenseDocumentReference = new LicenseDocumentReference();
320             licenseDocumentReference.setDocumentLabel(documentLabel);
321             licenseDocumentReference.setSectionDesignation(sectionDesignation);
322             licenseDocumentReference.setSectionIdentifier(sectionIdentifier);
323             licenseDocumentReference.setDatestamp("12/12/2012");
324             licenseDocumentReference.setSourcename("sourcename");
325             licenseDocumentReference.setSourcetype("sourceType");
326             assertNotNull(licenseDocumentReference.getDocumentLabel());
327             assertNotNull(licenseDocumentReference.getSectionDesignation());
328             assertNotNull(licenseDocumentReference.getSectionIdentifier());
329             assertNotNull(licenseDocumentReference.getDatestamp());
330             assertNotNull(licenseDocumentReference.getSourcename());
331             assertNotNull(licenseDocumentReference.getSourcetype());
332 
333             LicenseDocumentReference licenseDocumentReference1 = new LicenseDocumentReference();
334             licenseDocumentReference1.setSourcetype(null);
335             assertNotNull(licenseDocumentReference1.getSourcetype());
336 
337 
338             WorkLicenseOnixplRecordConverter workLicenseOnixplRecordConverter = new WorkLicenseOnixplRecordConverter();
339             workLicenseOnixplRecordConverter.unmarshal(null);
340 
341         } catch (Exception e) {
342             LOG.info(e.getMessage(), e);
343         }
344 
345     }
346 
347 
348     @Test
349     public void marshal() {
350         WorkLicenseOnixplRecordConverter workLicenseOnixplRecordConverter = new WorkLicenseOnixplRecordConverter();
351         ONIXPublicationsLicenseMessage onixPublicationsLicenseMessage = new ONIXPublicationsLicenseMessage();
352         workLicenseOnixplRecordConverter.marshal(onixPublicationsLicenseMessage);
353     }
354 
355     @Test
356     public void testObjectFactory() {
357         ObjectFactory objectFactory = new ObjectFactory();
358         assertNotNull(objectFactory.createAnnotation());
359         assertNotNull(objectFactory.createAnnotationAnnotationText());
360         assertNotNull(objectFactory.createAnnotationAnnotationType());
361         assertNotNull(objectFactory.createAnnotationAuthority());
362         assertNotNull(objectFactory.createLicenseDescription());
363         assertNotNull(objectFactory.createLicenseDocumentReference());
364         assertNotNull(objectFactory.createLicenseDocumentReferenceDocumentLabel());
365         assertNotNull(objectFactory.createLicenseDocumentReferenceSectionDesignation());
366         assertNotNull(objectFactory.createLicenseTextLink());
367         assertNotNull(objectFactory.createONIXPublicationsLicenseMessage());
368         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeader());
369         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderAddressee());
370         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderAddresseeAddresseeContact());
371         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderAddresseeAddresseeEmail());
372         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderAddresseeAddresseeIdentifier());
373         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderAddresseeAddresseeIdentifierAddresseeIDType());
374         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderMessageNote());
375         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderMessageNumber());
376         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderMessageRepeat());
377         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderSender());
378         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderSenderSenderContact());
379         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderSenderSenderEmail());
380         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderSenderSenderIdentifier());
381         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderSenderSenderIdentifierIDTypeName());
382         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderSenderSenderIdentifierIDValue());
383         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderSenderSenderIdentifierSenderIDType());
384         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderSentDateTime());
385         assertNotNull(objectFactory.createONIXPublicationsLicenseMessagePublicationsLicenseExpression());
386         assertNotNull(objectFactory.createPartyName());
387         assertNotNull(objectFactory.createPublicationsLicenseExpression());
388         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTerms());
389         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTerm());
390         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermAuthority());
391         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermQuantity());
392         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermQuantityContinuingAccessTermQuantityType());
393         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermQuantityQuantityDetail());
394         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermQuantityQuantityDetailProximity());
395         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermQuantityQuantityDetailQuantityUnit());
396         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermQuantityQuantityDetailReferenceUnit());
397         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermQuantityQuantityDetailValue());
398         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedAgent());
399         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedAgentContinuingAccessTermAgentRelator());
400         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermType());
401         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermOtherDocumentReference());
402         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermOtherDocumentReferenceDocumentLabel());
403         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermOtherDocumentReferenceReferenceRelator());
404         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermOtherDocumentReferenceSectionDesignation());
405         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitions());
406         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionDescription());
407         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionDescription());
408         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointQuantity());
409         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedTimePointRelatedTimePoint());
410         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTerms());
411         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceIdentifierResourceIDType());
412         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedPlaceSupplyTermPlaceRelator());
413         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceQuantityQuantityDetailReferenceUnit());
414         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedPlaceRelatedPlace());
415         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedPlace());
416         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermType());
417         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionDescription());
418         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermQuantityQuantityDetailReferenceUnit());
419         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedResource());
420         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedTimePointTimePointIdentifier());
421         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionOtherDocumentReferenceSectionDesignation());
422         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedAgent());
423         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionOtherDocumentReferenceReferenceRelator());
424         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermQuantityQuantityDetailReferenceUnit());
425         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedAgent());
426         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedResourceRelatedResource());
427         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedResource());
428         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedTimePointTimePointIdentifier());
429         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionOtherDocumentReferenceSectionDesignation());
430         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedAgent());
431         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermQuantityQuantityDetailValue());
432         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermQuantityQuantityDetailReferenceUnit());
433         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedAgent());
434         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedResourceRelatedResource());
435         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderAddresseeAddresseeIdentifierIDValue());
436         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedTimePoint());
437         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedTimePointPaymentTermTimePointRelator());
438         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedTimePointAgentTimePointRelator());
439         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailAuthority());
440         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionOtherDocumentReferenceSectionDesignation());
441         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedPlace());
442         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceQuantityQuantityDetailQuantityUnit());
443         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentNameAgentNamePartAgentNamePartType());
444         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermQuantityQuantityDetail());
445         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageOtherDocumentReferenceDocumentLabel());
446         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageQuantity());
447         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedAgentLicenseGrantAgentRelator());
448         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDocumentTextTextElementTextPreceding());
449         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedAgentRelatedAgent());
450         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionIdentifierIDTypeName());
451         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageAuthority());
452         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionOtherDocumentReferenceSectionDesignation());
453         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedResource());
454         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceType());
455         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTerms());
456         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointIdentifierTimePointIDType());
457         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermOtherDocumentReferenceReferenceRelator());
458         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermAuthority());
459         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTerms());
460         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedPlaceLicensePlaceRelator());
461         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedPlaceRelatedPlace());
462         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedTimePointResourceTimePointRelator());
463         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedTimePoint());
464         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinition());
465         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionAuthority());
466         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedResource());
467         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedTimePointSupplyTermTimePointRelator());
468         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTerm());
469         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantOtherDocumentReference());
470         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentIdentifier());
471         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedAgentPaymentTermAgentRelator());
472         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedAgentRelatedAgent());
473         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedAgentPlaceAgentRelator());
474         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedPlace());
475         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionAuthority());
476         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageStatus());
477         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedResourceRelatedResource());
478         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionReferenceExpressionVersion());
479         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermOtherDocumentReferenceReferenceRelator());
480         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantOtherDocumentReferenceSectionDesignation());
481         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermQuantityQuantityDetailProximity());
482         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceLabel());
483         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceNamePlaceNamePartNamePart());
484         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedTimePointLicenseTimePointRelator());
485         assertNotNull(objectFactory.createSectionIdentifier());
486         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageCondition());
487         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDocumentTextTextElement());
488         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermQuantityQuantityDetail());
489         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedResourceRelatedResource());
490         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedTimePointRelatedTimePoint());
491         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinition());
492         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedPlaceRelatedPlace());
493         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentNameAgentNamePart());
494         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentLabel());
495         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantCondition());
496         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedResource());
497         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermType());
498         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedTimePoint());
499         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionOtherDocumentReference());
500         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsCurrencyCode());
501         assertNotNull(objectFactory.createSectionIdentifierSectionIDType());
502         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedResource());
503         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantCondition());
504         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedTimePoint());
505         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentLabel());
506         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermOtherDocumentReference());
507         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedResourceRelatedResource());
508         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedPlaceRelatedPlace());
509         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantPurpose());
510         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedTimePointRelatedTimePoint());
511         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedTimePointLicenseGrantTimePointRelator());
512         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointQuantityQuantityDetailQuantityUnit());
513         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermQuantityQuantityDetail());
514         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageException());
515         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentName());
516         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedPlace());
517         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedResourceRelatedResource());
518         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentQuantityQuantityDetailReferenceUnit());
519         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedResourceLicenseResourceRelator());
520         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionOtherDocumentReferenceSectionDesignation());
521         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailDescription());
522         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentType());
523         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermOtherDocumentReference());
524         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsagePurpose());
525         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinition());
526         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseDocumentLicenseDocumentType());
527         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedAgentRelatedAgent());
528         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentNameAgentNameType());
529         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantOtherDocumentReferenceDocumentLabel());
530         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedPlaceRelatedPlace());
531         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedAgentRelatedAgent());
532         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageOtherDocumentReference());
533         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermOtherDocumentReferenceReferenceRelator());
534         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermQuantity());
535         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedAgentRelatedAgent());
536         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedTimePoint());
537         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermOtherDocumentReferenceSectionDesignation());
538         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantOtherDocumentReferenceReferenceRelator());
539         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedPlaceRelatedPlace());
540         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionOtherDocumentReferenceDocumentLabel());
541         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAuthority());
542         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedTimePointGeneralTermTimePointRelator());
543         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermQuantityQuantityDetailReferenceUnit());
544         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionReferenceExpressionIdentifierIDTypeName());
545         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointQuantityQuantityDetailValue());
546         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedResourceAgentResourceRelator());
547         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedPlace());
548         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionDescription());
549         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedPlace());
550         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedAgentSupplyTermAgentRelator());
551         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedPlaceContinuingAccessTermPlaceRelator());
552         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceQuantityQuantityDetail());
553         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseIdentifier());
554         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDescription());
555         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentIdentifierIDTypeName());
556         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedAgent());
557         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedPlaceDocumentPlaceRelator());
558         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedResource());
559         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseIdentifierIDValue());
560         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentQuantityAgentQuantityType());
561         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsedResource());
562         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceQuantityQuantityDetailReferenceUnit());
563         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedPlaceUsagePlaceRelator());
564         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedPlacePaymentTermPlaceRelator());
565         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedTimePoint());
566         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedResourceRelatedResource());
567         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionReferenceReferenceRelator());
568         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedPlace());
569         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermQuantitySupplyTermQuantityType());
570         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedTimePointDocumentTimePointRelator());
571         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageMethod());
572         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentQuantity());
573         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointLabel());
574         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedPlaceTimePointPlaceRelator());
575         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseIdentifierLicenseIDType());
576         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceQuantity());
577         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionOtherDocumentReferenceDocumentLabel());
578         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedAgentRelatedAgent());
579         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedResource());
580         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermOtherDocumentReferenceDocumentLabel());
581         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceQuantityQuantityDetail());
582         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedPlaceRelatedPlace());
583         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceNamePlaceNamePartPlaceNamePartType());
584         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentQuantityQuantityDetailQuantityUnit());
585         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedAgentGeneralTermAgentRelator());
586         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionIdentifierExpressionIDType());
587         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedPlaceRelatedPlace());
588         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceIdentifierPlaceIDType());
589         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionOtherDocumentReferenceReferenceRelator());
590         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedResourcePlaceResourceRelator());
591         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermQuantity());
592         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionIdentifierIDValue());
593         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedPlaceRelatedPlace());
594         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermAuthority());
595         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermQuantityQuantityDetailProximity());
596         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedAgentRelatedAgent());
597         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermQuantityQuantityDetailQuantityUnit());
598         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedPlace());
599         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermQuantityQuantityDetailValue());
600         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermQuantityQuantityDetailQuantityUnit());
601         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantType());
602         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTerm());
603         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionOtherDocumentReferenceReferenceRelator());
604         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDocumentTextDocumentLabel());
605         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedTimePoint());
606         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedResourceTimePointResourceRelator());
607         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedAgentLicenseAgentRelator());
608         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetail());
609         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailOtherDocumentReferenceDocumentLabel());
610         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedResourceUsageResourceRelator());
611         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionOtherDocumentReference());
612         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointQuantityQuantityDetailProximity());
613         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceQuantityResourceQuantityType());
614         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedTimePoint());
615         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedTimePointContinuingAccessTermTimePointRelator());
616         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedTimePoint());
617         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceQuantityQuantityDetailValue());
618         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedAgent());
619         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRenewalType());
620         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedTimePointRelatedTimePoint());
621         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedAgent());
622         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointQuantityQuantityDetail());
623         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermType());
624         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedAgent());
625         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentIdentifier());
626         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermOtherDocumentReferenceSectionDesignation());
627         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceIdentifierIDValue());
628         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedAgentRelatedAgent());
629         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedResourceRelatedResource());
630         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedPlace());
631         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedTimePointTimePointTimePointRelator());
632         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedAgent());
633         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsage());
634         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionVersion());
635         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionAuthority());
636         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermAuthority());
637         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTerm());
638         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermOtherDocumentReferenceDocumentLabel());
639         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermQuantity());
640         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDocumentText());
641         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceIdentifierIDTypeName());
642         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedResourceGeneralTermResourceRelator());
643         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedResourceLicenseGrantResourceRelator());
644         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailOtherDocumentReferenceReferenceRelator());
645         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionReferenceExpressionIdentifierIDValue());
646         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceQuantityPlaceQuantityType());
647         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedAgentDocumentAgentRelator());
648         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedTimePointRelatedTimePoint());
649         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointType());
650         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceIdentifier());
651         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedTimePointRelatedTimePoint());
652         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceLabel());
653         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedResourceRelatedResource());
654         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentType());
655         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailOtherDocumentReference());
656         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedTimePoint());
657         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionOtherDocumentReferenceReferenceRelator());
658         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTerms());
659         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedPlaceRelatedPlace());
660         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageQuantityQuantityDetailQuantityUnit());
661         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionOtherDocumentReferenceDocumentLabel());
662         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedTimePointRelatedTimePoint());
663         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermOtherDocumentReferenceDocumentLabel());
664         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedAgent());
665         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedPlaceLicenseGrantPlaceRelator());
666         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseIdentifierIDTypeName());
667         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedAgentRelatedAgent());
668         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermQuantityQuantityDetailValue());
669         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermQuantityGeneralTermQuantityType());
670         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedPlaceGeneralTermPlaceRelator());
671         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermQuantityQuantityDetailProximity());
672         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedTimePoint());
673         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedTimePointUsageTimePointRelator());
674         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinition());
675         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedResourceContinuingAccessTermResourceRelator());
676         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedPlace());
677         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageType());
678         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedTimePointTimePointIdentifierTimePointIDType());
679         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceQuantity());
680         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceType());
681         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedResourceRelatedResource());
682         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentIdentifierAgentIDType());
683         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedTimePointPlaceTimePointRelator());
684         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointIdentifierIDValue());
685         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrant());
686         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceNameName());
687         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedAgentAgentAgentRelator());
688         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedResourceRelatedResource());
689         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageOtherDocumentReferenceSectionDesignation());
690         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionType());
691         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionReferenceExpressionIdentifier());
692         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermQuantityQuantityDetailQuantityUnit());
693         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinition());
694         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedTimePointRelatedTimePoint());
695         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentIdentifierIDValue());
696         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionIdentifier());
697         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedPlace());
698         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedPlaceAgentPlaceRelator());
699         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedTimePointRelatedTimePoint());
700         assertNotNull(objectFactory.createSectionIdentifierIDValue());
701         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedTimePoint());
702         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseRelatedResource());
703         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUser());
704         assertNotNull(objectFactory.createONIXPublicationsLicenseMessageHeaderAddresseeAddresseeIdentifierIDTypeName());
705         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceName());
706         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedResourceRelatedResource());
707         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDocumentTextTextElementText());
708         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedAgentExpressionAgentRelator());
709         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageQuantityQuantityDetailValue());
710         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceQuantityQuantityDetailValue());
711         assertNotNull(objectFactory.createPublicationsLicenseExpressionContinuingAccessTermsContinuingAccessTermContinuingAccessTermRelatedAgentRelatedAgent());
712         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageQuantityUsageQuantityType());
713         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceIdentifier());
714         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedAgentUsageAgentRelator());
715         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageQuantityQuantityDetailReferenceUnit());
716         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedPlaceRelatedPlace());
717         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentQuantityQuantityDetail());
718         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedTimePoint());
719         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentIdentifierIDValue());
720         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetail());
721         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionStatus());
722         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedAgent());
723         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedResource());
724         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionReferenceExpressionIdentifierExpressionIDType());
725         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedTimePointExpressionTimePointRelator());
726         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedTimePointTimePointIdentifierIDValue());
727         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceIdentifierIDTypeName());
728         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedResourceDocumentResourceRelator());
729         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceRelatedPlacePlacePlaceRelator());
730         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionRelatedAgentName());
731         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedAgent());
732         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionOtherDocumentReference());
733         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedResource());
734         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceQuantityQuantityDetailQuantityUnit());
735         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentNameName());
736         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentIdentifierIDTypeName());
737         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedResource());
738         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedResourceRelatedResource());
739         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentQuantityQuantityDetailValue());
740         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermQuantityQuantityDetailReferenceUnit());
741         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedAgent());
742         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceQuantityQuantityDetailProximity());
743         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceNamePlaceNameType());
744         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermQuantityPaymentTermQuantityType());
745         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermOtherDocumentReference());
746         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageQuantityQuantityDetailProximity());
747         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentRelatedResource());
748         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedResource());
749         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedResourceResourceResourceRelator());
750         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceIdentifierIDValue());
751         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseDocumentDocumentLabel());
752         assertNotNull(objectFactory.createPublicationsLicenseExpressionGeneralTermsGeneralTermGeneralTermRelatedAgentRelatedAgent());
753         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointIdentifier());
754         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionAuthority());
755         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentQuantityQuantityDetailProximity());
756         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDocumentTextTextElementDisplayNumber());
757         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedAgentTimePointAgentRelator());
758         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedAgentRelatedAgent());
759         assertNotNull(objectFactory.createPublicationsLicenseExpressionPaymentTermsPaymentTermPaymentTermRelatedResourcePaymentTermResourceRelator());
760         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageOtherDocumentReferenceReferenceRelator());
761         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedAgent());
762         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantAuthority());
763         assertNotNull(objectFactory.createPublicationsLicenseExpressionExpressionDetailExpressionReference());
764         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermOtherDocumentReferenceSectionDesignation());
765         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointQuantityQuantityDetailReferenceUnit());
766         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedAgent());
767         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseStatus());
768         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionOtherDocumentReference());
769         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageRelatedPlaceRelatedPlace());
770         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionOtherDocumentReferenceDocumentLabel());
771         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointRelatedTimePointRelatedTimePoint());
772         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceNamePlaceNamePart());
773         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsPlaceDefinitionPlaceQuantityQuantityDetailProximity());
774         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageQuantityQuantityDetail());
775         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedResourceSupplyTermResourceRelator());
776         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDocumentTextTextElementSortNumber());
777         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentNameAgentNamePartNamePart());
778         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseGrantLicenseGrantRelatedPlace());
779         assertNotNull(objectFactory.createPublicationsLicenseExpressionLicenseDetailLicenseDocument());
780         assertNotNull(objectFactory.createPublicationsLicenseExpressionSupplyTermsSupplyTermSupplyTermRelatedTimePointRelatedTimePoint());
781         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentRelatedTimePointRelatedTimePoint());
782         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsDocumentDefinitionDocumentIdentifierDocumentIDType());
783         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsAgentDefinitionAgentLabel());
784         assertNotNull(objectFactory.createPublicationsLicenseExpressionUsageTermsUsageUsageExceptionUsageExceptionType());
785         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsTimePointDefinitionTimePointQuantityTimePointQuantityType());
786         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedPlaceResourcePlaceRelator());
787         assertNotNull(objectFactory.createPublicationsLicenseExpressionDefinitionsResourceDefinitionResourceRelatedAgentResourceAgentRelator());
788 
789         assertNotNull(GeneralTermTypeCode.fromValue("onixPL:UserFeedback"));
790         assertNotNull(GeneralTermTypeCode.ONIX_PL_ACTION_AGAINST_MISUSE.value());
791         try {
792             GeneralTermTypeCode.fromValue("Abc");
793         } catch (Exception e) {
794             LOG.info(e.getMessage());
795         }
796 
797         assertNotNull(LicenseAgentRelatorCode.fromValue("onixPL:LicensorLicenseAdministrator"));
798         assertNotNull(LicenseAgentRelatorCode.ONIX_PL_LICENSEE_REPRESENTATIVE.value());
799         try {
800             LicenseAgentRelatorCode.fromValue("jdhfj");
801         } catch (Exception e) {
802             LOG.info(e.getMessage());
803         }
804 
805         assertNotNull(UsagePurposeCode.ONIX_PL_PERSONAL_USE.value());
806         assertNotNull(UsagePurposeCode.fromValue("onixPL:CommercialUse"));
807         try {
808             assertNotNull(UsagePurposeCode.fromValue("hgdsf"));
809         } catch (Exception e) {
810             LOG.info(e.getMessage());
811         }
812         assertNotNull(UsageTypeCode.ONIX_PL_COPY.value());
813         assertNotNull(UsageTypeCode.fromValue("onixPL:UseForDataMining"));
814         try {
815             assertNotNull(UsageTypeCode.fromValue("ABS"));
816         } catch (Exception e) {
817             LOG.info(e.getMessage());
818         }
819         assertNotNull(SupplyTermTypeCode.ONIX_PL_CHANGES_TO_LICENSED_CONTENT.value());
820         assertNotNull(SupplyTermTypeCode.fromValue("onixPL:UserSupport"));
821         try {
822             assertNotNull(SupplyTermTypeCode.fromValue("abc"));
823         } catch (Exception e) {
824             LOG.info(e.getMessage());
825         }
826         assertNotNull(AnnotationTypeCode.ONIX_PL_ACKNOWLEDGEMENT_WORDING.value());
827         assertNotNull(AnnotationTypeCode.fromValue("onixPL:ERMI:WalkInUserTermNote"));
828         try {
829             assertNotNull(AnnotationTypeCode.fromValue("onix"));
830         } catch (Exception e) {
831             LOG.info(e.getMessage());
832         }
833 
834         assertNotNull(TermStatusCode.ONIX_PL_EXPLICIT_YES.value());
835         assertNotNull(TermStatusCode.fromValue("onixPL:Uncertain"));
836         try {
837             assertNotNull(TermStatusCode.fromValue("abs"));
838         } catch (Exception e) {
839             LOG.info(e.getMessage());
840         }
841 
842         assertNotNull(QuantityUnitCode.ONIX_PL_DAYS.value());
843         assertNotNull(QuantityUnitCode.fromValue("onixPL:Copies"));
844         try {
845             assertNotNull(QuantityUnitCode.fromValue("abs"));
846         } catch (Exception e) {
847             LOG.info(e.getMessage());
848         }
849 
850         assertNotNull(LicensePlaceRelatorCode.ONIX_PL_ADDRESS_FOR_NOTICES_TO_LICENSEE_CONSORTIUM.value());
851         assertNotNull(LicensePlaceRelatorCode.fromValue("onixPL:PlaceOfCopyrightLaw"));
852         try {
853             assertNotNull(LicensePlaceRelatorCode.fromValue("abs"));
854         } catch (Exception e) {
855             LOG.info(e.getMessage());
856         }
857 
858         assertNotNull(UsageConditionCode.ONIX_PL_RECORD_KEEPING_NOT_REQUIRED.value());
859         assertNotNull(UsageConditionCode.fromValue("onixPL:DestructionOfUsedResourceAfterUse"));
860         try {
861             assertNotNull(UsageConditionCode.fromValue("abs"));
862         } catch (Exception e) {
863             LOG.info(e.getMessage());
864         }
865 
866         assertNotNull(UsageStatusCode.ONIX_PL_NOT_APPLICABLE.value());
867         assertNotNull(UsageStatusCode.fromValue("onixPL:InterpretedAsProhibited"));
868         try {
869             assertNotNull(UsageStatusCode.fromValue("abs"));
870         } catch (Exception e) {
871             LOG.info(e.getMessage());
872         }
873 
874         assertNotNull(UsageMethodCode.ONIX_PL_FAX.value());
875         assertNotNull(UsageMethodCode.fromValue("onixPL:Fax"));
876         try {
877             assertNotNull(UsageMethodCode.fromValue("abs"));
878         } catch (Exception e) {
879             LOG.info(e.getMessage());
880         }
881 
882         assertNotNull(LicenseStatusCode.ONIX_PL_MODEL.value());
883         assertNotNull(LicenseStatusCode.fromValue("onixPL:ActiveLicense"));
884         try {
885             assertNotNull(LicenseStatusCode.fromValue("abs"));
886         } catch (Exception e) {
887             LOG.info(e.getMessage());
888         }
889 
890         assertNotNull(ExpressionTypeCode.ONIX_PL_ERMI_LICENSE_ENCODING.value());
891         assertNotNull(ExpressionTypeCode.fromValue("onixPL:LicenseExpression"));
892         try {
893             assertNotNull(ExpressionTypeCode.fromValue("abs"));
894         } catch (Exception e) {
895             LOG.info(e.getMessage());
896         }
897 
898         assertNotNull(DocumentIDTypeCode.ONIX_PL_LICENSEE_DOCUMENT_REFERENCE.value());
899         assertNotNull(DocumentIDTypeCode.fromValue("onixPL:Proprietary"));
900         try {
901             assertNotNull(DocumentIDTypeCode.fromValue("abs"));
902         } catch (Exception e) {
903             LOG.info(e.getMessage());
904         }
905 
906         assertNotNull(ResourceResourceRelatorCode.ONIX_PL_IS_ANY_OF.value());
907         assertNotNull(ResourceResourceRelatorCode.fromValue("onixPL:IsPartOf"));
908         try {
909             assertNotNull(ResourceResourceRelatorCode.fromValue("abs"));
910         } catch (Exception e) {
911             LOG.info(e.getMessage());
912         }
913 
914         assertNotNull(ReferenceRelatorCode.ONIX_PL_BASED_ON_TERMS_OF.value());
915         assertNotNull(ReferenceRelatorCode.fromValue("onixPL:DerivedFromModel"));
916         try {
917             assertNotNull(ReferenceRelatorCode.fromValue("abs"));
918         } catch (Exception e) {
919             LOG.info(e.getMessage());
920         }
921 
922         assertNotNull(ProximityCode.ONIX_PL_LESS_THAN.value());
923         assertNotNull(ProximityCode.fromValue("onixPL:MoreThan"));
924         try {
925             assertNotNull(ProximityCode.fromValue("abs"));
926         } catch (Exception e) {
927             LOG.info(e.getMessage());
928         }
929 
930         assertNotNull(ContinuingAccessTermTypeCode.ONIX_PL_CONTINUING_ACCESS.value());
931         assertNotNull(ContinuingAccessTermTypeCode.fromValue("onixPL:NotificationOfDarkArchive"));
932         try {
933             assertNotNull(ContinuingAccessTermTypeCode.fromValue("onix"));
934         } catch (Exception e) {
935             LOG.info(e.getMessage());
936         }
937 
938         assertNotNull(AgentTypeCode.ONIX_PL_PERSON.value());
939         assertNotNull(AgentTypeCode.fromValue("onixPL:Unspecified"));
940         try {
941             assertNotNull(AgentTypeCode.fromValue("onix"));
942         } catch (Exception e) {
943             LOG.info(e.getMessage());
944         }
945 
946         assertNotNull(AgentPlaceRelatorCode.ONIX_PL_PLACE_OF_CORPORATE_REGISTRATION.value());
947         assertNotNull(AgentPlaceRelatorCode.fromValue("onixPL:RegisteredAddress"));
948         try {
949             assertNotNull(AgentPlaceRelatorCode.fromValue("onix"));
950         } catch (Exception e) {
951             LOG.info(e.getMessage());
952         }
953 
954         assertNotNull(GeneralTermQuantityTypeCode.ONIX_PL_NOTICE_PERIOD_FOR_TERMINATION.value());
955         assertNotNull(GeneralTermQuantityTypeCode.fromValue("onixPL:NoticePeriodForNonRenewal"));
956         try {
957             assertNotNull(GeneralTermQuantityTypeCode.fromValue("abc"));
958         } catch (Exception e) {
959             LOG.info(e.getMessage());
960         }
961 
962         assertNotNull(UsageQuantityTypeCode.ONIX_PL_NUMBER_OF_COPIES_PERMITTED.value());
963         assertNotNull(UsageQuantityTypeCode.fromValue("onixPL:NumberOfConcurrentUsers"));
964         try {
965             assertNotNull(UsageQuantityTypeCode.fromValue("absd"));
966         } catch (Exception e) {
967             LOG.info(e.getMessage());
968         }
969 
970         assertNotNull(SectionIDTypeCode.ONIX_PL_PROPRIETARY.value());
971         assertNotNull(SectionIDTypeCode.fromValue("onixPL:URI"));
972         try {
973             assertNotNull(SectionIDTypeCode.fromValue("absh"));
974         } catch (Exception e) {
975             LOG.info(e.getMessage());
976         }
977 
978         assertNotNull(ResourceIDTypeCode.ONIX_PL_ISBN_13.value());
979         assertNotNull(ResourceIDTypeCode.fromValue("onixPL:DOI"));
980         try {
981             assertNotNull(ResourceIDTypeCode.fromValue("onix"));
982         } catch (Exception e) {
983             LOG.info(e.getMessage());
984         }
985 
986         assertNotNull(PlaceIDTypeCode.ONIX_PL_LOCATION_CODE.value());
987         assertNotNull(PlaceIDTypeCode.fromValue("onixPL:LocationCode"));
988         try {
989             assertNotNull(PlaceIDTypeCode.fromValue("onix"));
990         } catch (Exception e) {
991             LOG.info(e.getMessage());
992         }
993 
994         assertNotNull(LicenseTimePointRelatorCode.ONIX_PL_LICENSE_END_DATE.value());
995         assertNotNull(LicenseTimePointRelatorCode.fromValue("onixPL:LicenseEndDate"));
996         try {
997             assertNotNull(LicenseTimePointRelatorCode.fromValue("onix"));
998         } catch (Exception e) {
999             LOG.info(e.getMessage());
1000         }
1001 
1002         assertNotNull(LicenseRenewalTypeCode.ONIX_PL_EXPLICIT.value());
1003         assertNotNull(LicenseRenewalTypeCode.fromValue("onixPL:Explicit"));
1004         try {
1005             assertNotNull(LicenseRenewalTypeCode.fromValue("onix"));
1006         } catch (Exception e) {
1007             LOG.info(e.getMessage());
1008         }
1009 
1010         assertNotNull(LicenseIDTypeCode.ONIX_PL_LICENSEE_CONTRACT_NUMBER.value());
1011         assertNotNull(LicenseIDTypeCode.fromValue("onixPL:LicenseeContractNumber"));
1012         try {
1013             assertNotNull(LicenseIDTypeCode.fromValue("onix"));
1014         } catch (Exception e) {
1015             LOG.info(e.getMessage());
1016         }
1017 
1018         assertNotNull(LicenseGrantTypeCode.ONIX_PL_NON_EXCLUSIVE.value());
1019         assertNotNull(LicenseGrantTypeCode.fromValue("onixPL:Exclusive"));
1020         try {
1021             assertNotNull(LicenseGrantTypeCode.fromValue("onix"));
1022         } catch (Exception e) {
1023             LOG.info(e.getMessage());
1024         }
1025 
1026         assertNotNull(LicenseDocumentTypeCode.ONIX_PL_LICENSE.value());
1027         assertNotNull(LicenseDocumentTypeCode.fromValue("onixPL:LicenseMainTerms"));
1028         try {
1029             assertNotNull(LicenseDocumentTypeCode.fromValue("onix"));
1030         } catch (Exception e) {
1031             LOG.info(e.getMessage());
1032         }
1033 
1034         assertNotNull(GeneralTermPlaceRelatorCode.ONIX_PL_ADDRESS_FOR_NOTICES_TO_LICENSOR.value());
1035         assertNotNull(GeneralTermPlaceRelatorCode.fromValue("onixPL:AddressForNoticesToLicensor"));
1036         try {
1037             assertNotNull(GeneralTermPlaceRelatorCode.fromValue("onix"));
1038         } catch (Exception e) {
1039             LOG.info(e.getMessage());
1040         }
1041 
1042         assertNotNull(ExpressionStatusCode.ONIX_PL_DRAFT.value());
1043         assertNotNull(ExpressionStatusCode.fromValue("onixPL:Approved"));
1044         try {
1045             assertNotNull(ExpressionStatusCode.fromValue("onix"));
1046         } catch (Exception e) {
1047             LOG.info(e.getMessage());
1048         }
1049 
1050         assertNotNull(ExpressionIDTypeCode.ONIX_PL_URL.value());
1051         assertNotNull(ExpressionIDTypeCode.fromValue("onixPL:URI"));
1052         try {
1053             assertNotNull(ExpressionIDTypeCode.fromValue("onix"));
1054         } catch (Exception e) {
1055             LOG.info(e.getMessage());
1056         }
1057 
1058         assertNotNull(AgentNameTypeCode.ONIX_PL_POSITION_IN_ORGANIZATION.value());
1059         assertNotNull(AgentNameTypeCode.fromValue("onixPL:RegisteredName"));
1060         try {
1061             assertNotNull(AgentNameTypeCode.fromValue("onix"));
1062         } catch (Exception e) {
1063             LOG.info(e.getMessage());
1064         }
1065 
1066         assertNotNull(AgentAgentRelatorCode.ONIX_PL_IS_ANY_OF.value());
1067         assertNotNull(AgentAgentRelatorCode.fromValue("onixPL:IsAuthorizedRepresentativeOf"));
1068         try {
1069             assertNotNull(AgentAgentRelatorCode.fromValue("onix"));
1070         } catch (Exception e) {
1071             LOG.info(e.getMessage());
1072         }
1073 
1074         assertNotNull(UsagePlaceRelatorCode.ONIX_PL_PLACE_OF_RECEIVING_AGENT.value());
1075         assertNotNull(UsagePlaceRelatorCode.fromValue("onixPL:PlaceOfDeposit"));
1076         try {
1077             assertNotNull(UsagePlaceRelatorCode.fromValue("onix"));
1078         } catch (Exception e) {
1079             LOG.info(e.getMessage());
1080         }
1081 
1082         assertNotNull(UsageExceptionTypeCode.ONIX_PL_EXCEPT_AS_PERMITTED.value());
1083         assertNotNull(UsageExceptionTypeCode.fromValue("onixPL:ExceptAsPermittedByStatute"));
1084         try {
1085             assertNotNull(UsageExceptionTypeCode.fromValue("onix"));
1086         } catch (Exception e) {
1087             LOG.info(e.getMessage());
1088         }
1089 
1090         assertNotNull(GeneralTermTimePointRelatorCode.ONIX_PL_EFFECTIVE_DATE_FOR_VARIATION.value());
1091         assertNotNull(GeneralTermTimePointRelatorCode.fromValue("onixPL:ExpiryDateForNotice"));
1092         try {
1093             assertNotNull(GeneralTermTimePointRelatorCode.fromValue("onix"));
1094         } catch (Exception e) {
1095             LOG.info(e.getMessage());
1096         }
1097 
1098         assertNotNull(RelatedAgentCode.ONIX_PL_EXTERNAL_LIBRARIAN.value());
1099         assertNotNull(RelatedAgentCode.fromValue("onixPL:ExternalLibrarian"));
1100         try {
1101             assertNotNull(RelatedAgentCode.fromValue("onix"));
1102         } catch (Exception e) {
1103             LOG.info(e.getMessage());
1104         }
1105 
1106         assertNotNull(RelatedPlaceCode.ONIX_PL_LICENSEE_PREMISES.value());
1107         assertNotNull(RelatedPlaceCode.fromValue("onixPL:LicenseePremises"));
1108         try {
1109             assertNotNull(RelatedPlaceCode.fromValue("onix"));
1110         } catch (Exception e) {
1111             LOG.info(e.getMessage());
1112         }
1113 
1114         assertNotNull(RelatedResourceCode.ONIX_PL_ACKNOWLEDGMENT_OF_SOURCE.value());
1115         assertNotNull(RelatedResourceCode.fromValue("onixPL:AcknowledgmentOfSource"));
1116         try {
1117             assertNotNull(RelatedResourceCode.fromValue("onix"));
1118         } catch (Exception e) {
1119             LOG.info(e.getMessage());
1120         }
1121 
1122 
1123         assertNotNull(RelatedTimePointCode.ONIX_PL_LICENSE_START_DATE.value());
1124         assertNotNull(RelatedTimePointCode.fromValue("onixPL:LicenseEndDate"));
1125         try {
1126             assertNotNull(RelatedTimePointCode.fromValue("onix"));
1127         } catch (Exception e) {
1128             LOG.info(e.getMessage());
1129         }
1130 
1131         assertNotNull(UsedResourceCode.ONIX_PL_AUTHORED_CONTENT.value());
1132         assertNotNull(UsedResourceCode.fromValue("onixPL:AuthoredContent"));
1133         try {
1134             assertNotNull(UsedResourceCode.fromValue("onix"));
1135         } catch (Exception e) {
1136             LOG.info(e.getMessage());
1137         }
1138 
1139         assertNotNull(UserCode.ONIX_PL_EXTERNAL_STUDENT.value());
1140         assertNotNull(UserCode.fromValue("onixPL:ExternalStudent"));
1141         try {
1142             assertNotNull(UserCode.fromValue("onix"));
1143         } catch (Exception e) {
1144             LOG.info(e.getMessage());
1145         }
1146 
1147         assertNotNull(PlaceNameTypeCode.ONIX_PL_ADDRESS_AS_SEPARATE_LINES.value());
1148         assertNotNull(PlaceNameTypeCode.fromValue("onixPL:AddressAsSeparateLines"));
1149         try {
1150             assertNotNull(PlaceNameTypeCode.fromValue("onix"));
1151         } catch (Exception e) {
1152             LOG.info(e.getMessage());
1153         }
1154 
1155         assertNotNull(UsageResourceRelatorCode.ONIX_PL_TARGET_RESOURCE.value());
1156         assertNotNull(UsageResourceRelatorCode.fromValue("onixPL:TargetResource"));
1157         try {
1158             assertNotNull(UsageResourceRelatorCode.fromValue("onix"));
1159         } catch (Exception e) {
1160             LOG.info(e.getMessage());
1161         }
1162 
1163         assertNotNull(LicenseGrantPurposeCode.ONIX_PL_NON_COMMERCIAL_USE.value());
1164         assertNotNull(LicenseGrantPurposeCode.fromValue("onixPL:NonCommercialUse"));
1165         try {
1166             assertNotNull(LicenseGrantPurposeCode.fromValue("onix"));
1167         } catch (Exception e) {
1168             LOG.info(e.getMessage());
1169         }
1170 
1171         assertNotNull(GeneralTermAgentRelatorCode.ONIX_PL_ADDRESSEE_FOR_NOTICES_TO_LICENSEE.value());
1172         assertNotNull(GeneralTermAgentRelatorCode.fromValue("onixPL:AddresseeForNoticesToLicensee"));
1173         try {
1174             assertNotNull(GeneralTermAgentRelatorCode.fromValue("onix"));
1175         } catch (Exception e) {
1176             LOG.info(e.getMessage());
1177         }
1178 
1179         assertNotNull(ExpressionAgentRelatorCode.ONIX_PL_APPROVED_BY.value());
1180         assertNotNull(ExpressionAgentRelatorCode.fromValue("onixPL:ApprovedBy"));
1181         try {
1182             assertNotNull(ExpressionAgentRelatorCode.fromValue("onix"));
1183         } catch (Exception e) {
1184             LOG.info(e.getMessage());
1185         }
1186 
1187         assertNotNull(DocumentTypeCode.ONIX_PL_DOCUMENT.value());
1188         assertNotNull(DocumentTypeCode.fromValue("onixPL:Document"));
1189         try {
1190             assertNotNull(DocumentTypeCode.fromValue("onix"));
1191         } catch (Exception e) {
1192             LOG.info(e.getMessage());
1193         }
1194 
1195         assertNotNull(AgentIDTypeCode.ONIX_PL_COMPANY_REGISTRATION_NUMBER.value());
1196         assertNotNull(AgentIDTypeCode.fromValue("onixPL:CompanyRegistrationNumber"));
1197         try {
1198             assertNotNull(AgentIDTypeCode.fromValue("onix"));
1199         } catch (Exception e) {
1200             LOG.info(e.getMessage());
1201         }
1202 
1203         assertNotNull(UsageAgentRelatorCode.ONIX_PL_RECEIVING_AGENT.value());
1204         assertNotNull(UsageAgentRelatorCode.fromValue("onixPL:ReceivingAgent"));
1205         try {
1206             assertNotNull(UsageAgentRelatorCode.fromValue("onix"));
1207         } catch (Exception e) {
1208             LOG.info(e.getMessage());
1209         }
1210 
1211         assertNotNull(TimePointIDTypeCode.ONIX_PL_YYYYMMDD.value());
1212         assertNotNull(TimePointIDTypeCode.fromValue("onixPL:YYYYMMDD"));
1213         try {
1214             assertNotNull(TimePointIDTypeCode.fromValue("onix"));
1215         } catch (Exception e) {
1216             LOG.info(e.getMessage());
1217         }
1218 
1219         assertNotNull(SupplyTermTimePointRelatorCode.ONIX_PL_SUPPLY_START_DATE.value());
1220         assertNotNull(SupplyTermTimePointRelatorCode.fromValue("onixPL:SupplyStartDate"));
1221         try {
1222             assertNotNull(SupplyTermTimePointRelatorCode.fromValue("onix"));
1223         } catch (Exception e) {
1224             LOG.info(e.getMessage());
1225         }
1226 
1227         assertNotNull(SupplyTermQuantityTypeCode.ONIX_PL_GUARANTEED_UPTIME.value());
1228         assertNotNull(SupplyTermQuantityTypeCode.fromValue("onixPL:GuaranteedUptime"));
1229         try {
1230             assertNotNull(SupplyTermQuantityTypeCode.fromValue("onix"));
1231         } catch (Exception e) {
1232             LOG.info(e.getMessage());
1233         }
1234 
1235         assertNotNull(PlacePlaceRelatorCode.ONIX_PL_IS_ANY_OF.value());
1236         assertNotNull(PlacePlaceRelatorCode.fromValue("onixPL:IsAnyOf"));
1237         try {
1238             assertNotNull(PlacePlaceRelatorCode.fromValue("onix"));
1239         } catch (Exception e) {
1240             LOG.info(e.getMessage());
1241         }
1242 
1243         assertNotNull(PlaceNamePartTypeCode.ONIX_PL_ADDRESS_LINE.value());
1244         assertNotNull(PlaceNamePartTypeCode.fromValue("onixPL:AddressLine"));
1245         try {
1246             assertNotNull(PlaceNamePartTypeCode.fromValue("onix"));
1247         } catch (Exception e) {
1248             LOG.info(e.getMessage());
1249         }
1250 
1251         assertNotNull(PaymentTermTypeCode.ONIX_PL_PAYMENT_CONDITIONS.value());
1252         assertNotNull(PaymentTermTypeCode.fromValue("onixPL:PaymentConditions"));
1253         try {
1254             assertNotNull(PaymentTermTypeCode.fromValue("onix"));
1255         } catch (Exception e) {
1256             LOG.info(e.getMessage());
1257         }
1258 
1259         assertNotNull(LicenseResourceRelatorCode.ONIX_PL_LICENSED_CONTENT.value());
1260         assertNotNull(LicenseResourceRelatorCode.fromValue("onixPL:LicensedContent"));
1261         try {
1262             assertNotNull(LicenseResourceRelatorCode.fromValue("onix"));
1263         } catch (Exception e) {
1264             LOG.info(e.getMessage());
1265         }
1266 
1267         assertNotNull(ExpressionTimePointRelatorCode.ONIX_PL_PREPARED_ON.value());
1268         assertNotNull(ExpressionTimePointRelatorCode.fromValue("onixPL:PreparedOn"));
1269         try {
1270             assertNotNull(ExpressionTimePointRelatorCode.fromValue("onix"));
1271         } catch (Exception e) {
1272             LOG.info(e.getMessage());
1273         }
1274 
1275         assertNotNull(DocumentTimePointRelatorCode.ONIX_PL_LATEST_REVISION_DATE.value());
1276         assertNotNull(DocumentTimePointRelatorCode.fromValue("onixPL:LatestRevisionDate"));
1277         try {
1278             assertNotNull(DocumentTimePointRelatorCode.fromValue("onix"));
1279         } catch (Exception e) {
1280             LOG.info(e.getMessage());
1281         }
1282 
1283         WorkLicenseOnixplRecord workLicenseOnixplRecord = new WorkLicenseOnixplRecord();
1284         workLicenseOnixplRecord.setTitle("title");
1285         workLicenseOnixplRecord.setContractNumber("123");
1286         workLicenseOnixplRecord.setLicensee("admin");
1287         workLicenseOnixplRecord.setLicensor("licensor");
1288         assertNotNull(workLicenseOnixplRecord.getContractNumber());
1289         assertNotNull(workLicenseOnixplRecord.getLicensee());
1290         assertNotNull(workLicenseOnixplRecord.getLicensor());
1291         assertNotNull(workLicenseOnixplRecord.getTitle());
1292 
1293         LicenseDescription licenseDescription = new LicenseDescription();
1294         licenseDescription.setValue("value");
1295         licenseDescription.setLanguage("language");
1296         licenseDescription.setSourcename("sourcename");
1297         licenseDescription.setSourcetype("type");
1298         licenseDescription.setDatestamp("12/12/2013");
1299         assertNotNull(licenseDescription.getDatestamp());
1300         assertNotNull(licenseDescription.getLanguage());
1301         assertNotNull(licenseDescription.getSourcename());
1302         assertNotNull(licenseDescription.getSourcetype());
1303         assertNotNull(licenseDescription.getValue());
1304         LicenseDescription licenseDescription1 = new LicenseDescription();
1305         licenseDescription1.setSourcetype(null);
1306         assertNotNull(licenseDescription1.getSourcetype());
1307 
1308         LicenseTextLink licenseTextLink = new LicenseTextLink();
1309         licenseTextLink.setDatestamp("12/12/2013");
1310         licenseTextLink.setSourcename("sourcename");
1311         licenseTextLink.setSourcetype("sourcetype");
1312         licenseTextLink.setHref("href");
1313         assertNotNull(licenseTextLink.getDatestamp());
1314         assertNotNull(licenseTextLink.getHref());
1315         assertNotNull(licenseTextLink.getSourcename());
1316         assertNotNull(licenseTextLink.getSourcetype());
1317         LicenseTextLink licenseTextLink1 = new LicenseTextLink();
1318         assertNotNull(licenseTextLink1.getSourcetype());
1319 
1320 
1321         PartyName partyName = new PartyName();
1322         partyName.setDatestamp("12/12/2013");
1323         partyName.setSourcename("sourcename");
1324         partyName.setSourcetype("sourcetype");
1325         partyName.setValue("value");
1326         assertNotNull(partyName.getDatestamp());
1327         assertNotNull(partyName.getSourcename());
1328         assertNotNull(partyName.getSourcetype());
1329         assertNotNull(partyName.getValue());
1330         PartyName partyName1 = new PartyName();
1331         partyName1.setSourcetype(null);
1332         assertNotNull(partyName1.getSourcetype());
1333 
1334 
1335     }
1336 }
1337 
1338