public void testParameterReplacementFirst()
{
final ParameterUpdateEvent event = new ParameterUpdateEvent(this, 0, "SUM(1; (1 + 1))", false);
final FormulaDocument doc = new FormulaDocument();
doc.setText("=IF(;;)");
final FunctionInformation fn = doc.getFunctionForPosition(1);
final FunctionParameterEditHelper.EditResult editResult =
FunctionParameterEditHelper.buildFormulaText(event, fn, doc.getText());
assertEquals("=IF(SUM(1; (1 + 1));;)", editResult.text);