CollectionManagementService cms = (CollectionManagementService)test.getService("CollectionManagementService", "1.0");
//create /db/securityTest2/parentCollection with owner "test1:users" and mode "rwxrwxrwx"
Collection parentCollection = cms.createCollection("parentCollection");
UserManagementService ums = (UserManagementService)parentCollection.getService("UserManagementService", "1.0");
ums.chmod("rwxrwxrwx");
//now create the sub-resource /db/securityTest2/parentCollection/test.xml
//as "user3:guest", it should have it's group set to the primary group of user3 i.e. 'guest'
//as the collection is NOT setGid, the file should NOT have the setGid bit set
parentCollection = DatabaseManager.getCollection(baseUri + "/db/securityTest2/parentCollection", "test3", "test3");