ZDataProperty implements Serializable { public String getDataPropertyNamespace() { return dataProperty.getNamespace(); } ZDataProperty(IRI dataProperty); @Override int hashCode(); @Override boolean equals(Object obj); String getValue(); void setValue(String value); String getTemplateForm(); String getLabel(); void setLabel(String label); String getComments(); void setComments(String comments); IRI getDataProperty(); String getDataPropertyShortFormCS(); String getDataPropertyShortForm(); String getDataPropertyNamespace(); void setDataProperty(IRI dataProperty); String getRestrictionType(); void setRestrictionType(String restrictionType); String getRangeXSDType(); void setRangeXSDType(String rangeXSDType); void print(); void setOverridable(); boolean isOverridable(); String getPackageName(); void setPackageName(String packageName); boolean isHidingParentProperty(); void setHidingParentProperty(); boolean isGeneratable(); void setGenerate(boolean generate);  }
@Test public void testZDataPropertynamespace() throws NoSuchFieldException, IllegalAccessException { String iriStr = "http: IRI iri = IRI.create(iriStr); ZDataProperty zdataproperty = new ZDataProperty(iri); assertEquals("Fields didn't match", zdataproperty.getDataPropertyNamespace(), "http: }