}
protected void assertUnregistered(ClassLoaderDomain domain, ClassLoader expected)
{
assertTrue("Expected an unregistered", unregistered.isEmpty() == false);
ClassLoaderEvent event = unregistered.remove(0);
assertEquals(domain, event.getClassLoaderDomain());
assertEquals(domain, event.getSource());
assertEquals(expected, event.getClassLoader());
}