final SimpleModuleDefinition definition = new SimpleModuleDefinition("mymodule");
expect(classLoaderFactory.newClassLoader(application, ClassUtils.getDefaultClassLoader(), definition)).andReturn(ClassUtils.getDefaultClassLoader());
replay(classLoaderFactory, classLoaderRegistry);
final RuntimeModule module = runtime.doLoadModule(application, definition);
assertTrue(module instanceof SimpleRuntimeModule);
verify(classLoaderFactory, classLoaderRegistry);
}