}
{
File module3Dir = createModule("org.lilyproject.runtime.test.testmodules.jwiringmod3");
ModuleDefinition module3 = new ModuleDefinition("jwiringmod3", module3Dir, ModuleSourceType.EXPANDED_JAR);
module3.addInject(new JavaServiceInjectByNameDefinition("bean1", "jwiringmod1", "foo1Bean"));
module3.addInject(new JavaServiceInjectByNameDefinition("someDependency", "jwiringmod1", "someName"));
module3.addInject(new JavaServiceInjectByNameDefinition("bean3", "jwiringmod2"));
model.addModule(module3);
}
{
File module4Dir = createModule("org.lilyproject.runtime.test.testmodules.jwiringmod4");