}
protected void assertEvent(String name, ClassLoader expected)
{
assertTrue("Expected an event", events.isEmpty() == false);
ClassFoundEvent event = events.remove(0);
assertEquals(name, event.getClassName());
assertEquals(expected, event.getClassLoader());
assertEquals(expected, event.getSource());
}