### Question:
WebResourceManagerImpl implements WebResourceManager { List<PluginResource> getSuperBatchResources(WebResourceFilter filter) { if (!batchingConfiguration.isSuperBatchingEnabled()) return Collections.emptyList(); LinkedHashSet<String> superBatchModuleKeys = dependencyResolver.getSuperBatchDependencies(); List<PluginResource> resources = new ArrayList<PluginResource>(); for (WebResourceFormatter formatter : webResourceFormatters) { Set<Map<String, String>> alreadyIncluded = new HashSet<Map<String, String>>(); for (String moduleKey : superBatchModuleKeys) { for (PluginResource pluginResource : pluginResourceLocator.getPluginResources(moduleKey)) { if (formatter.matches(pluginResource.getResourceName()) && filter.matches(pluginResource.getResourceName())) { Map<String, String> batchParamsMap = new HashMap<String, String>(PluginResourceLocator.BATCH_PARAMS.length); for (String s : PluginResourceLocator.BATCH_PARAMS) { batchParamsMap.put(s, pluginResource.getParams().get(s)); } if (!alreadyIncluded.contains(batchParamsMap)) { resources.add(SuperBatchPluginResource.createBatchFor(pluginResource)); alreadyIncluded.add(batchParamsMap); } } } } } return resources; } WebResourceManagerImpl(PluginResourceLocator pluginResourceLocator, WebResourceIntegration webResourceIntegration);  WebResourceManagerImpl(PluginResourceLocator pluginResourceLocator, WebResourceIntegration webResourceIntegration, ResourceBatchingConfiguration batchingConfiguration);  WebResourceManagerImpl(PluginResourceLocator pluginResourceLocator, WebResourceIntegration webResourceIntegration,
                                  ResourceBatchingConfiguration batchingConfiguration, ResourceDependencyResolver dependencyResolver); void requireResource(String moduleCompleteKey); void requireResourcesForContext(String context); void includeResources(Writer writer); void includeResources(Iterable<String> moduleCompleteKeys, Writer writer, UrlMode urlMode); void includeResources(Writer writer, UrlMode urlMode); void includeResources(Writer writer, UrlMode urlMode, WebResourceFilter webResourceFilter); String getRequiredResources(); String getRequiredResources(UrlMode urlMode); String getRequiredResources(UrlMode urlMode, WebResourceFilter webResourceFilter); void requireResource(String moduleCompleteKey, Writer writer); void requireResource(String moduleCompleteKey, Writer writer, UrlMode urlMode); String getResourceTags(String moduleCompleteKey); String getResourceTags(String moduleCompleteKey, UrlMode urlMode); String getStaticResourcePrefix(); String getStaticResourcePrefix(UrlMode urlMode); String getStaticResourcePrefix(String resourceCounter); String getStaticResourcePrefix(String resourceCounter, UrlMode urlMode); String getStaticPluginResource(final String moduleCompleteKey, final String resourceName); String getStaticPluginResource(final String moduleCompleteKey, final String resourceName, final UrlMode urlMode); @SuppressWarnings("unchecked") String getStaticPluginResource(ModuleDescriptor moduleDescriptor, String resourceName); String getStaticPluginResource(ModuleDescriptor moduleDescriptor, String resourceName, UrlMode urlMode); @Deprecated @SuppressWarnings("unchecked") String getStaticPluginResourcePrefix(ModuleDescriptor moduleDescriptor, String resourceName); @Deprecated void setIncludeMode(final IncludeMode includeMode);  }### Answer:
@Test public void testSuperBatchResolution() throws DocumentException { TestUtils.setupSuperbatchTestContent(resourceBatchingConfiguration, mockPluginAccessor, testPlugin); mockOutSuperbatchPluginAccesses(); List<PluginResource> cssResources = webResourceManager.getSuperBatchResources(CssWebResource.FORMATTER); assertEquals(2, cssResources.size()); SuperBatchPluginResource superBatch1 = (SuperBatchPluginResource) cssResources.get(0); assertEquals("batch.css", superBatch1.getResourceName()); assertTrue(superBatch1.getParams().isEmpty()); SuperBatchPluginResource superBatch2 = (SuperBatchPluginResource) cssResources.get(1); assertEquals("batch.css", superBatch2.getResourceName()); assertEquals("true", superBatch2.getParams().get("ieonly")); List<PluginResource> jsResources = webResourceManager.getSuperBatchResources(JavascriptWebResource.FORMATTER); assertEquals(1, jsResources.size()); assertEquals("batch.js", jsResources.get(0).getResourceName()); assertEquals(0, jsResources.get(0).getParams().size()); }