don't allow calls to get application context if there isn't one
SpringContextRule implements BeanFactory