public void testParser() throws Exception {
ByteArrayOutputStream bao = new ByteArrayOutputStream();
// set up an object
CmisPropertiesType properties = new CmisPropertiesType();
CmisPropertyString propName = new CmisPropertyString();
propName.setPropertyDefinitionId(PropertyIds.NAME);
propName.getValue().add("TestName");
properties.getProperty().add(propName);
CmisPropertyInteger propInt = new CmisPropertyInteger();
propInt.setPropertyDefinitionId("IntProp");
propInt.getValue().add(BigInteger.valueOf(1));
propInt.getValue().add(BigInteger.valueOf(2));
propInt.getValue().add(BigInteger.valueOf(3));
properties.getProperty().add(propInt);
CmisPropertyDecimal propDec = new CmisPropertyDecimal();
propDec.setPropertyDefinitionId("DecProp");
propDec.getValue().add(
new BigDecimal("3.14159253589793238462643383279502884197"
+ "169399375105820974944592307816406286208998628034825342117067982148086513"));
properties.getProperty().add(propDec);
CmisObjectType object1 = new CmisObjectType();
object1.setProperties(properties);
// write the entry