public void setUp() {
jmctx = JMeterContextService.getContext();
variables = new HashMap<String, String>();
variables.put("my_regex", ".*");
variables.put("server", "jakarta.apache.org");
result = new SampleResult();
result.setResponseData("<html>hello world</html> costs: $3.47,$5.67", null);
transformer = new ReplaceStringWithFunctions(new CompoundVariable(), variables);
jmctx.setVariables(new JMeterVariables());
jmctx.setSamplingStarted(true);
jmctx.setPreviousResult(result);