fail("test.implementation.loading.support.Trivial is already visible");
}
catch (ClassNotFoundException expected) {}
// Add the URL to the repository twice
UnifiedClassLoader ucl1 = lr.newClassLoader(url, true);
UnifiedClassLoader ucl2 = lr.newClassLoader(url, true);
// Should be able to load the class
lr.loadClass("test.implementation.loading.support.Trivial");
// Remove one
ucl1.unregister();
// Should still be able to load the class
lr.loadClass("test.implementation.loading.support.Trivial");
// Remove the other
ucl2.unregister();
}