### Question:
PluggableDownloadStrategy implements DownloadStrategy { public void unregister(final String key) { strategies.remove(key); } PluggableDownloadStrategy(final PluginEventManager pluginEventManager); boolean matches(final String urlPath); void serveFile(final HttpServletRequest request, final HttpServletResponse response); void register(final String key, final DownloadStrategy strategy); void unregister(final String key); @PluginEventListener void pluginModuleEnabled(final PluginModuleEnabledEvent event); @PluginEventListener void pluginModuleDisabled(final PluginModuleDisabledEvent event);  }### Answer:
@Test public void testUnregister() throws Exception { strategy.register("monkey.key", new StubDownloadStrategy("/monkey", "Bananas")); strategy.unregister("monkey.key"); assertFalse(strategy.matches("/monkey/something")); }