moduleRuntime.afterModuleLoaded(definition1);
}
public void testWithModuleLoader() throws Exception {
DefaultModuleRuntimeMonitor runtimeMonitor = new DefaultModuleRuntimeMonitor();
runtimeMonitor.setModuleChangeMonitor(monitor);
runtimeMonitor.setModuleLocationResolver(moduleLocationResolver);
moduleRuntime.setModuleRuntimeMonitor(runtimeMonitor);
expect(definition1.getName()).andReturn("myName");
expect(moduleLocationResolver.getApplicationModuleClassLocations("myName")).andReturn(resources);
this.monitor.setResourcesToMonitor(eq("myName"), aryEq(resources.toArray(new Resource[0])));