### Question:
PluginResourceDownload implements DownloadStrategy { public boolean matches(String urlPath) { return pluginResourceLocator.matches(urlPath); } PluginResourceDownload();  PluginResourceDownload(PluginResourceLocator pluginResourceLocator, ContentTypeResolver contentTypeResolver, String characterEncoding); boolean matches(String urlPath); void serveFile(HttpServletRequest request, HttpServletResponse response); void setCharacterEncoding(String characterEncoding); void setContentTypeResolver(ContentTypeResolver contentTypeResolver); void setPluginResourceLocator(PluginResourceLocator pluginResourceLocator);  }### Answer:
@Test public void testMatches() { mockPluginResourceLocator.expectAndReturn("matches", C.args(C.eq(SINGLE_RESOURCE)), true); assertTrue(pluginResourceDownload.matches(SINGLE_RESOURCE)); mockPluginResourceLocator.expectAndReturn("matches", C.args(C.eq(BATCH_RESOURCE)), true); assertTrue(pluginResourceDownload.matches(BATCH_RESOURCE)); }