Resource[] resources1 = new Resource[]{ new FileSystemResource("r1")};
Resource[] resources2 = new Resource[]{ new FileSystemResource("r1"), new FileSystemResource("r2")};
Resource[] resources3 = new Resource[]{ new FileSystemResource("r2")};
expect(moduleStateHolder.getRootModule()).andReturn(new DefaultSpringRuntimeModule(new SimpleModuleDefinition("newlocation"), context));
expect(moduleStateHolder.getRootModuleDefinition()).andReturn(originalSpec);
expect(moduleLoader.newBeanDefinitionReader("id", context, newSpec)).andReturn(beanDefinitionReader);
expect(context.getClassLoader()).andReturn(classLoader);
expect(moduleLoader.getSpringConfigResources("id", originalSpec, classLoader)).andReturn(resources1);
expect(moduleLoader.getSpringConfigResources("id", newSpec, classLoader)).andReturn(resources2);