### Question:
PluginResourceLocatorImpl implements PluginResourceLocator { public boolean matches(final String url) { return SuperBatchPluginResource.matches(url) || SuperBatchSubResource.matches(url) || SinglePluginResource.matches(url) || BatchPluginResource.matches(url); } PluginResourceLocatorImpl(final WebResourceIntegration webResourceIntegration, final ServletContextFactory servletContextFactory);  PluginResourceLocatorImpl(final WebResourceIntegration webResourceIntegration, final ServletContextFactory servletContextFactory,
                                     final ResourceBatchingConfiguration resourceBatchingConfiguration); private  PluginResourceLocatorImpl(final WebResourceIntegration webResourceIntegration, final ServletContextFactory servletContextFactory,
                                      final ResourceDependencyResolver dependencyResolver); boolean matches(final String url); DownloadableResource getDownloadableResource(final String url, final Map<String, String> queryParams); List<PluginResource> getPluginResources(final String moduleCompleteKey); String getResourceUrl(final String moduleCompleteKey, final String resourceName); static final String PLUGIN_WEBRESOURCE_BATCHING_OFF; }### Answer:
@Test public void testMatches() { assertTrue(pluginResourceLocator.matches("/download/superbatch/css/batch.css")); assertTrue(pluginResourceLocator.matches("/download/superbatch/css/images/background/blah.gif")); assertTrue(pluginResourceLocator.matches("/download/batch/plugin.key:module-key/plugin.key.js")); assertTrue(pluginResourceLocator.matches("/download/resources/plugin.key:module-key/foo.png")); }
@Test public void testNotMatches() { assertFalse(pluginResourceLocator.matches("/superbatch/batch.css")); assertFalse(pluginResourceLocator.matches("/download/blah.css")); }