public void reverseReplace(TestElement el) throws InvalidVariableException {
        Collection<JMeterProperty> newProps = replaceValues(el.propertyIterator(), new ReplaceFunctionsWithStrings(masterFunction,
                variables));
        setProperties(el, newProps);
    }
@Test
    public void testOverlappingMatches() throws Exception {
        TestPlan plan = new TestPlan();
        plan.addParameter("longMatch", "servername");
        plan.addParameter("shortMatch", ".+");
        ValueReplacer replacer = new ValueReplacer(plan);
        TestElement element = new TestPlan();
        element.setProperty(new StringProperty("domain", "servername.domain"));
        replacer.reverseReplace(element, true);
        String replacedDomain = element.getPropertyAsString("domain");
        assertEquals("${${shortMatch}", replacedDomain);
    }