}
// Test with output variable name
public void testVariableExtraction1a() throws Exception {
params = new LinkedList<CompoundVariable>();
params.add(new CompoundVariable("<value field=\"(pinposition\\d+)\">(\\d+)</value>"));
params.add(new CompoundVariable("$2$")); // template
params.add(new CompoundVariable("2")); // match number
params.add(new CompoundVariable("-")); // ALL separator
params.add(new CompoundVariable("default"));
params.add(new CompoundVariable("OUTVAR"));
variable.setParameters(params);
String match = variable.execute(result, null);
assertEquals("3", vars.getObject("OUTVAR_matchNr"));
assertEquals("5", match);
assertEquals("5", vars.getObject("OUTVAR"));