public void testRestoreValue() {
   factory = new BeanFactoryVariableValueFactory(TestBean.class, new DefaultListableBeanFactory());
   MockRequestContext context = new MockRequestContext();
   TestBean bean = new TestBean();
   factory.restoreReferences(bean, context);
 }
 public void testCreateValue() {
   factory = new BeanFactoryVariableValueFactory(TestBean.class, new DefaultListableBeanFactory());
   MockRequestContext context = new MockRequestContext();
   Object value = factory.createInitialValue(context);
   assertTrue(value instanceof TestBean);
 }