### Question:
MultiClassLoader extends ClassLoader { public boolean addClassLoader(ClassLoader loader) { if (_loaders.contains(loader)) return false; return _loaders.add(loader); } MultiClassLoader();  MultiClassLoader(MultiClassLoader other);  MultiClassLoader(ClassLoader... loaders); boolean containsClassLoader(ClassLoader loader); ClassLoader[] getClassLoaders(); ClassLoader getClassLoader(int index); boolean addClassLoader(ClassLoader loader); boolean addClassLoader(int index, ClassLoader loader); void setClassLoaders(MultiClassLoader multi); boolean addClassLoaders(int index, MultiClassLoader multi); boolean addClassLoaders(MultiClassLoader multi); boolean removeClassLoader(ClassLoader loader); void clear(); int size(); boolean isEmpty(); @Override boolean equals(Object other); @Override int hashCode(); static final ClassLoader THREAD_LOADER; static final ClassLoader SYSTEM_LOADER; }### Answer:
@Test public void testGetResource() { assertNull(_loader.getResource("foo")); _loader.addClassLoader(new FooLoader()); assertNotNull(_loader.getResource("foo")); }