expect(definition1.getParentDefinition()).andReturn(null);
expect(definition1.getName()).andReturn("myName");
replay(definition1, monitor, moduleLocationResolver);
final RuntimeModule runtimeModule = moduleRuntime.loadRuntimeModule(application, definition1);
assertTrue(runtimeModule instanceof SimpleRuntimeModule);
assertEquals(definition1, runtimeModule.getModuleDefinition());
assertEquals(ClassUtils.getDefaultClassLoader(), classLoaderRegistry.getClassLoader("myName"));
verify(definition1, monitor, moduleLocationResolver);
}