protected Collection createCollection() {
ClassLoader classLoader = BundleDelegatingClassLoader.createBundleClassLoaderFor(bundleContext.getBundle());
OsgiServiceList col = new OsgiServiceList(null, bundleContext, classLoader, null);
col.setRequiredAtStartup(false);
// col.setInterfaces(new Class[] { Date.class });
col.afterPropertiesSet();
return col;
}
public void testListContent() throws Exception {
List list = (List) createCollection();