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

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