assertEquals(1, params.getAllowedFolderNodeTypes().size());
assertTrue(params.getAllowedFolderNodeTypes().contains(InitParamsDefaults.FOLDER_NODE_TYPE));
assertEquals(1, params.getAllowedFileNodeTypes().size());
assertTrue(params.getAllowedFileNodeTypes().contains(InitParamsDefaults.FILE_NODE_TYPE));
InitParams ip = new InitParams();
ValueParam vp = new ValueParam();
vp.setName(InitParamsNames.DEF_FOLDER_NODE_TYPE);
vp.setValue(InitParamsNames.DEF_FOLDER_NODE_TYPE);
ip.addParameter(vp);
vp = new ValueParam();
vp.setName(InitParamsNames.DEF_FILE_NODE_TYPE);
vp.setValue(InitParamsNames.DEF_FILE_NODE_TYPE);
ip.addParameter(vp);
vp = new ValueParam();
vp.setName(InitParamsNames.DEF_FILE_MIME_TYPE);
vp.setValue(InitParamsNames.DEF_FILE_MIME_TYPE);
ip.addParameter(vp);
vp = new ValueParam();
vp.setName(InitParamsNames.UPDATE_POLICY);
vp.setValue(InitParamsNames.UPDATE_POLICY);
ip.addParameter(vp);
vp = new ValueParam();
vp.setName(InitParamsNames.AUTO_VERSION);
vp.setValue(InitParamsNames.AUTO_VERSION);
ip.addParameter(vp);
vp = new ValueParam();
vp.setName(InitParamsNames.FILE_ICON_PATH);
vp.setValue(InitParamsNames.FILE_ICON_PATH);
ip.addParameter(vp);
vp = new ValueParam();
vp.setName(InitParamsNames.FOLDER_ICON_PATH);
vp.setValue(InitParamsNames.FOLDER_ICON_PATH);
ip.addParameter(vp);
vp = new ValueParam();
vp.setName(InitParamsNames.CACHE_CONTROL);
vp.setValue("text/xml,text/html:max-age=1800;text/*:max-age=777;image/png,image/jpg:max-age=3600;*/*:no-cache;image/*:max-age=555");
ip.addParameter(vp);
ValuesParam vsp = new ValuesParam();
vsp.setName(InitParamsNames.UNTRUSTED_USER_AGENTS);
vsp.getValues().add(InitParamsNames.UNTRUSTED_USER_AGENTS);
vsp.getValues().add(InitParamsNames.UNTRUSTED_USER_AGENTS + "2");
ip.addParameter(vsp);
vsp = new ValuesParam();
vsp.setName(InitParamsNames.ALLOWED_FOLDER_NODE_TYPES);
vsp.getValues().add(InitParamsNames.ALLOWED_FOLDER_NODE_TYPES);
ip.addParameter(vsp);
vsp = new ValuesParam();
vsp.setName(InitParamsNames.ALLOWED_FILE_NODE_TYPES);
vsp.getValues().add(InitParamsNames.ALLOWED_FILE_NODE_TYPES);
ip.addParameter(vsp);
assertEquals(11, ip.size());
// This is required to be able to parse the MimeType
RuntimeDelegate.setInstance(new RuntimeDelegateImpl());
params = new WebDavServiceInitParams(ip);