@Test(expected = UnsupportedOperationException.class)
public void testCreateVariableStringObject() {

    replay(factory, request, applicationContext);
    try {
        factory.createVariable("myName", "myValue");
    } finally {
        verify(factory, request, applicationContext);
    }
}