* @throws Exception
*/
@Test
public void testObjectCreationWithNamespace() throws Exception {
String ns = "http://www.test.org/pdfa/";
BooleanType bool = new BooleanType(parent, ns, "test", "booleen", true);
DateType date = new DateType(parent, ns, "test", "date", Calendar
.getInstance());
IntegerType integer = new IntegerType(parent, ns, "test", "integer", 1);
RealType real = new RealType(parent, ns, "test", "real", (float) 1.6);
TextType text = new TextType(parent, ns, "test", "text", "TEST");
Assert.assertEquals(ns, bool.getNamespace());
Assert.assertEquals(ns, date.getNamespace());
Assert.assertEquals(ns, integer.getNamespace());
Assert.assertEquals(ns, real.getNamespace());
Assert.assertEquals(ns, text.getNamespace());
Element e = parent.getFuturOwner().createElement("TEST");
parent.getFuturOwner().appendChild(e);
e.appendChild(bool.getElement());
e.appendChild(date.getElement());
e.appendChild(integer.getElement());
e.appendChild(real.getElement());
e.appendChild(text.getElement());