}
public void testTextTableFormulaModel2() {
try {
TextTableFormulaExpression textTableFormulaExpression = new TextTableFormulaExpression("<A1>+<b2>");
TextTableCellReference[] references = new TextTableCellReference[3];
TextTableCellReference reference1 = new TextTableCellReference("<D6>");
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());
}