### Question:
BatchPluginResource implements DownloadableResource, PluginResource, BatchResource { public boolean isCacheSupported() { return !"false".equals(params.get("cache")); } BatchPluginResource(final String moduleCompleteKey, final String type, final Map<String, String> params); private  BatchPluginResource(final String resourceName, final String moduleCompleteKey, final String type, final Map<String, String> params); boolean isEmpty(); void add(final DownloadableResource resource); boolean isResourceModified(final HttpServletRequest request, final HttpServletResponse response); void serveResource(final HttpServletRequest request, final HttpServletResponse response); void streamResource(final OutputStream out); String getContentType(); static BatchPluginResource parse(String url, final Map<String, String> queryParams); static boolean matches(final String url); String getUrl(); String getResourceName(); Map<String, String> getParams(); String getVersion(WebResourceIntegration integration); String getModuleCompleteKey(); boolean isCacheSupported(); String getType(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testIsCacheSupported() throws Exception { final BatchPluginResource resource = BatchPluginResource.parse("/download/batch/test.plugin:webresources/test.plugin:webresources.css", Collections.<String, String>emptyMap()); assertTrue(resource.isCacheSupported()); final Map<String, String> queryParams = new TreeMap<String, String>(); queryParams.put("cache", "false"); final BatchPluginResource resource2 = BatchPluginResource.parse("/download/batch/test.plugin:webresources/test.plugin:webresources.css", queryParams); assertFalse(resource2.isCacheSupported()); }