### Question:
PluginConfiguration { public URL[] getWatchResources() { return convertToURL(getProperty("watchResources")); } PluginConfiguration(ClassLoader classLoader);  PluginConfiguration(PluginConfiguration parent, ClassLoader classLoader); String getProperty(String property); String getProperty(String property, String defaultValue); boolean getPropertyBoolean(String property); URL[] getExtraClasspath(); URL[] getWatchResources(); String[] getBasePackagePrefixes(); URL[] getWebappDir(); List<String> getDisabledPlugins(); boolean isDisabledPlugin(String pluginName); boolean isDisabledPlugin(Class<?> pluginClass); ClassLoader getClassLoader(); boolean containsPropertyFile();  }### Answer:
@Test public void testGetWatchResources() throws Exception { PluginConfiguration pluginConfiguration = new PluginConfiguration(getClass().getClassLoader()); File tempFile = File.createTempFile("test", "test"); pluginConfiguration.properties.setProperty("watchResources", tempFile.toURI().toURL().toString()); assertEquals(tempFile.toURI().toURL(), pluginConfiguration.getWatchResources()[0]); pluginConfiguration.properties.setProperty("watchResources", tempFile.getAbsolutePath()); File canonicalFile = tempFile.getCanonicalFile(); assertEquals(canonicalFile.toURI().toURL(), pluginConfiguration.getWatchResources()[0]); }