### Question:
BundleClassloaderWrapper extends ClassLoader { @Override public Enumeration<URL> findResources( String name ) throws IOException { return bundle.getResources( name ); } BundleClassloaderWrapper( Bundle bundle );  BundleClassloaderWrapper( Bundle bundle, ClassLoader parent ); @Override Enumeration<URL> findResources( String name ); @Override URL findResource( String name ); @Override Class<?> findClass( String name ); @Override URL getResource( String name ); Bundle getBundle();  }### Answer:
@Test public void testFindResources() throws IOException { Enumeration result = mock( Enumeration.class ); String resource = "RESOURCE"; when( bundle.getResources( resource ) ).thenReturn( result ); BundleClassloaderWrapper bundleClassloaderWrapper = new BundleClassloaderWrapper( bundle ); assertEquals( result, bundleClassloaderWrapper.findResources( resource ) ); }