void () { RegExMacro macro = new RegExMacro(); assertNull(macro.calculateResult(createParams(null, "", ""), null, false)); assertNull(macro.calculateResult(createParams("test", null, ""), null, false)); assertNull(macro.calculateResult(createParams("test", "", null), null, false)); assertEquals("DummyClass", macro.calculateResult(createParams("DummyClassTest", "(.*)Test", "$1"), null, false).toString()); }