public void testConfigureScaffolding() {
GroovyClassLoader gcl = new GroovyClassLoader();
Class<?> dc = gcl.parseClass("class Test { Long id; Long version; }");
Class<?> c = gcl.parseClass("class TestController { def scaffold = Test }");
GrailsApplication app = new DefaultGrailsApplication(new Class[]{dc,c}, gcl);
app.getMetadata().getConfigMap().put(Metadata.APPLICATION_NAME, getClass().getName());
MockApplicationContext parent = new MockApplicationContext();
parent.registerMockBean(GrailsApplication.APPLICATION_ID, app);