*/
public class LoaderExtensionTestCase extends TestCase {
@SuppressWarnings("unchecked")
public void testRegistrationDeregistration() throws Exception {
LoaderRegistry registry = EasyMock.createMock(LoaderRegistry.class);
registry.registerLoader(isA(QName.class), isA(Extension.class));
expectLastCall();
registry.unregisterLoader(isA(QName.class), isA(Extension.class));
expectLastCall();
EasyMock.replay(registry);
Extension loader = new Extension(registry);
loader.start();
loader.stop();