TextTableCellReference reference2 = new TextTableCellReference("<E6>");
TextTableCellReference reference3 = new TextTableCellReference("<F6>");
references[0] = reference1;
references[1] = reference2;
references[2] = reference3;
TextTableFormulaModel formulaModel = new TextTableFormulaModel(textTableFormulaExpression);
TextTableCellReference cellReference = formulaModel.getCellReferences()[0];
formulaModel.replaceCellReference(cellReference,references);
references = formulaModel.getCellReferences();
Assert.assertEquals(4, references.length);
Assert.assertEquals("(<D6>+<E6>+<F6>)+<b2>", formulaModel.getExpression());
}
catch(Exception exception) {
Assert.fail(exception.getMessage());
}
}