/**
* Test method for {@link ScopeVariableResolverFactory#createVariable(String, Object, Class)}.
*/
@Test
public void testCreateVariableStringObjectClassNextFactory() {
VariableResolverFactory nextFactory = createMock(VariableResolverFactory.class);
VariableResolver resolver = createMock(VariableResolver.class);
expect(nextFactory.createVariable("myName", "myValue", String.class)).andReturn(resolver);
replay(factory, request, applicationContext, nextFactory, resolver);
factory.setNextFactory(nextFactory);
assertEquals(resolver, factory.createVariable("myName", "myValue", String.class));
verify(factory, request, applicationContext, nextFactory, resolver);