}
public void testGetParentApplicationContextWithNonSpringModule() throws Exception {
SpringRuntimeModule module1 = createMock(SpringRuntimeModule.class);
RuntimeModule module2 = createMock(RuntimeModule.class);
SpringRuntimeModule module3 = createMock(SpringRuntimeModule.class);
expect(definition3.getParentDefinition()).andReturn(definition2);
expect(definition2.getName()).andReturn("definition2");
expect(moduleStateHolder.getModule("definition2")).andReturn(module2);