protected void setUp() throws Exception {
super.setUp();
classLoaderRegistry = new ModuleClassLoaderRegistry();
moduleRuntime = new TestModuleRuntime();
moduleRuntime.setClassLoaderFactory(new TestClassLoaderFactory());
definition1 = createMock(ModuleDefinition.class);
monitor = createMock(ModuleChangeMonitor.class);
moduleLocationResolver = createMock(ModuleLocationResolver.class);
resources = new ArrayList<Resource>();