String valType = "OwnType";
String nsType = "http://test.apache.com/xap/test/";
String prefType = "tst";
String descType = "Test Own type";
desc2.addValueType(valType, nsType, prefType, "must be replaced", null);
desc2.addValueType(valType, nsType, prefType, descType, null);
Assert.assertEquals(1, desc2.getValueTypes().size());
PDFAValueTypeDescription value = desc2.getValueTypes().get(0);
Assert.assertEquals(valType, value.getTypeNameValue());
Assert.assertEquals(nsType, value.getNamespaceURIValue());
Assert.assertEquals(prefType, value.getPrefixValue());