### Question:
WebResourceManagerImpl implements WebResourceManager { public String getResourceTags(String moduleCompleteKey) { return getResourceTags(moduleCompleteKey, UrlMode.AUTO); } 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 testRequireResourceWithCacheParameter() throws Exception { final String completeModuleKey = "test.maera:no-cache-resources"; final String expectedResult = setupRequireResourceWithCacheParameter(false, completeModuleKey); assertTrue(webResourceManager.getResourceTags(completeModuleKey).contains(expectedResult)); }
@Test public void testRequireSingleResourceGetsDeps() throws Exception { String resourceA = "test.maera:a"; String resourceB = "test.maera:b"; final List<ResourceDescriptor> resourceDescriptorsA = TestUtils.createResourceDescriptors("resourceA.css"); final List<ResourceDescriptor> resourceDescriptorsB = TestUtils.createResourceDescriptors("resourceB.css", "resourceB-more.css"); mockPluginAccessor.matchAndReturn("getEnabledPluginModule", C.args(C.eq(resourceA)), TestUtils.createWebResourceModuleDescriptor(resourceA, testPlugin, resourceDescriptorsA, Collections.singletonList(resourceB))); mockPluginAccessor.matchAndReturn("getEnabledPluginModule", C.args(C.eq(resourceB)), TestUtils.createWebResourceModuleDescriptor(resourceB, testPlugin, resourceDescriptorsB, Collections.<String>emptyList())); String s = webResourceManager.getResourceTags(resourceA); int indexA = s.indexOf(resourceA); int indexB = s.indexOf(resourceB); assertNotSame(-1, indexA); assertNotSame(-1, indexB); assertTrue(indexB < indexA); }