assertEquals("hello",testInstance.getProperty("updatedProp"));
}
public void testApplicationIsAvailableInResources() throws Exception {
GroovyClassLoader gcl = new GroovyClassLoader();
gcl.parseClass("class Holder { def value }");
/*Class<?> resourcesClass =*/ gcl.parseClass("beans = { b(Holder, value: application); b2(Holder, value: grailsApplication) }", "resources.groovy");
GrailsApplication app = new DefaultGrailsApplication(new Class[]{}, gcl);
RuntimeSpringConfiguration springConfig = new DefaultRuntimeSpringConfiguration();
GrailsRuntimeConfigurator.loadExternalSpringConfig(springConfig, app);