@Test
public void testExecutePlugin_preserveVarType() throws Exception {

    final ListVariable listVar = new ListVariable(Arrays.asList(1, 2, 3));
    contextMock.returns(
            asList(new KeyValuePair("list", listVar)).iterator()).
            iterator();
    ReflectionAssert.assertReflectionEquals(listVar, createPlugin(
            XmlNodeTestUtils.createXmlNode("<value-of expr='${list}'/>",
            XmlNodeTestUtils.NAMESPACE_21),
            ValueOfPlugin.class).executePlugin(contextMock.getMock()));
}