void () { RegExMacro macro = new RegExMacro(); assertNull("Non existing regex group referenced", macro.calculateResult(createParams("DummyClassTest", "(.*)Test", "$3"), null, false)); assertNull("Incorrect regex", macro.calculateResult(createParams("y", "(.*Test", "$2"), null, false)); }