ClassLoaderPool { public static void unregister(ClassLoader classLoader) { String contextName = _contextNames.remove(classLoader); if (contextName != null) { _classLoaders.remove(contextName); _unregisterFallback(contextName); } }  static ClassLoader getClassLoader(String contextName); static String getContextName(ClassLoader classLoader); static void register(String contextName, ClassLoader classLoader); static void unregister(ClassLoader classLoader); static void unregister(String contextName);  }
@Test public void testUnregisterWithInvalidClassLoader() { ClassLoaderPool.unregister(new URLClassLoader(new URL[0])); _assertEmptyMaps(); }
@Test public void testUnregisterWithInvalidContextName() { ClassLoaderPool.unregister(_CONTEXT_NAME_WITHOUT_VERSION); _assertEmptyMaps(); }