@Test
public void testOverride() throws IOException {

    InitTest.initted = false;
    ModuleBasedContextFactory factory = new ModuleBasedContextFactory();
    ModuleDefinitionSet set = factory.loadModules(defs, "base");
    assertTrue(!InitTest.initted);
    assertEquals("a string", set.getApplicationContext("child1").getBean("override", String.class));
}