*
*/
public void testVersioningWithCreator() throws Exception
{
FileObject scratchFolder = createScratchFolder();
FileSystemOptions opts = scratchFolder.getFileSystem().getFileSystemOptions();
WebdavFileSystemConfigBuilder builder =
(WebdavFileSystemConfigBuilder)getManager().getFileSystemConfigBuilder("webdav");
builder.setVersioning(opts, true);
builder.setCreatorName(opts, "testUser");
FileObject file = getManager().resolveFile(scratchFolder, "file1.txt", opts);
FileSystemOptions newOpts = file.getFileSystem().getFileSystemOptions();
assertTrue(opts == newOpts);
assertTrue(builder.isVersioning(newOpts));
assertTrue(!file.exists());
file.createFile();
assertTrue(file.exists());