private static InMemoryDocumentTypeDefinition createDocumentTypeWithDefault() {
InMemoryDocumentTypeDefinition cmisDocumentType = new InMemoryDocumentTypeDefinition(
TEST_DOC_TYPE_WITH_DEFAULTS_ID, "Document Type With default values", InMemoryDocumentTypeDefinition
.getRootDocumentType());
Map<String, PropertyDefinition<?>> propertyDefinitions = new HashMap<String, PropertyDefinition<?>>();
PropertyStringDefinitionImpl prop = PropertyCreationHelper.createStringMultiDefinition(
TEST_DOCUMENT_MY_MULTI_STRING_PROP_ID, "Test Multi String Property");
prop.setIsRequired(false);
List<String> defValS = new ArrayList<String>() {{ add("Apache"); add("CMIS"); }};
prop.setDefaultValue(defValS);
propertyDefinitions.put(prop.getId(), prop);
PropertyIntegerDefinitionImpl prop2 = PropertyCreationHelper.createIntegerDefinition(
TEST_DOCUMENT_MY_INT_PROP_ID, "Test Integer Property");
prop2.setIsRequired(false);
List<BigInteger> defVal = new ArrayList<BigInteger>() {{ add(BigInteger.valueOf(100)); }};