### Question:
BundleClassloaderWrapper extends ClassLoader { public Bundle getBundle() { return bundle; } 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 testBundleConstructor() { assertEquals( bundle, new BundleClassloaderWrapper( bundle ).getBundle() ); }
@Test public void testBundleAndParentConstructor() { BundleClassloaderWrapper bundleClassloaderWrapper = new BundleClassloaderWrapper( bundle, parent ); assertEquals( bundle, bundleClassloaderWrapper.getBundle() ); assertEquals( parent, bundleClassloaderWrapper.getParent() ); }