### Question:
SmooksOSGIFactory implements SmooksFactory { public Smooks createInstance() { return createSmooksWithDelegatingClassloader(); } SmooksOSGIFactory(final Bundle bundle); Smooks createInstance(); Smooks createInstance(final InputStream config); Smooks createInstance(String config);  }### Answer:
@Test public void createWithoutConfig() throws IOException, SAXException { final Bundle bundle = mock(Bundle.class); final SmooksOSGIFactory factory = new SmooksOSGIFactory(bundle); final Smooks smooks = factory.createInstance(); assertThat(smooks.getClassLoader(), is(instanceOf(BundleClassLoaderDelegator.class))); }