public void setUp() throws Exception
{
super.setUp();
bf = new DefaultListableBeanFactory();
bf.registerSingleton(DATASOURCE_BEAN, datasource);
LocalOjbConfigurer ojbConfigurer = new LocalOjbConfigurer();
ojbConfigurer.setBeanFactory(bf);
addBeanFactory(bf);
appCtx = new GenericApplicationContext(bf);
bf.preInstantiateSingletons();
getContext().put(APP_CONTEXT, appCtx);
}