assertEquals(66d, ((Number)result).doubleValue(), 0d);
//test cascaded formula (a formula refer to a cell with formula)
((SheetImpl)sheet2).setCellValue(0, 0, new Integer(1)); //A1
((SheetImpl)sheet2).setCellValue(1, 0, new Integer(2)); //A2
((SheetImpl)sheet2).setCellValue(2, 0, new FormulaImpl("=SUM(A1,A2)")); //A3
/* ((SheetImpl)sheet2).setCellValue(3, 0, new FormulaImpl("=SUM(A2,A3)")); //A4
((SheetImpl)sheet2).setCellValue(4, 0, new FormulaImpl("=SUM(A3,A4)")); //A5
((SheetImpl)sheet2).setCellValue(5, 0, new FormulaImpl("=SUM(A4,A5)")); //A6
((SheetImpl)sheet2).setCellValue(6, 0, new FormulaImpl("=SUM(A5,A6)")); //A7
((SheetImpl)sheet2).setCellValue(7, 0, new FormulaImpl("=SUM(A6,A7)")); //A8
((SheetImpl)sheet2).setCellValue(8, 0, new FormulaImpl("=SUM(A7,A8)")); //A9
((SheetImpl)sheet2).setCellValue(9, 0, new FormulaImpl("=SUM(A8,A9)")); //A10
((SheetImpl)sheet2).setCellValue(10, 0, new FormulaImpl("=SUM(A9,A10)")); //A11
*/
((SheetImpl)sheet2).setCellValue(3, 0, null); //A4
((SheetImpl)sheet2).setCellValue(4, 0, null); //A5
((SheetImpl)sheet2).setCellValue(5, 0, null); //A6
((SheetImpl)sheet2).setCellValue(6, 0, null); //A7
((SheetImpl)sheet2).setCellValue(7, 0, null); //A8
((SheetImpl)sheet2).setCellValue(8, 0, null); //A9
((SheetImpl)sheet2).setCellValue(9, 0, null); //A10
((SheetImpl)sheet2).setCellValue(10, 0, null); //A11
//test Range.copy()
new RangeSimple(sheet2, null, 0, 2, 0, 2).copy(new RangeSimple(sheet2, null, 0, 3, 0, 10)); //A3 -> A4:A11
/* CellImpl cella3 = (CellImpl)sheet2.getCell(2,0);
cella3.copy(sheet2.getCell(3,0)); //A4
cella3.copy(sheet2.getCell(4,0)); //A5
cella3.copy(sheet2.getCell(5,0)); //A6
cella3.copy(sheet2.getCell(6,0)); //A7
cella3.copy(sheet2.getCell(7,0)); //A8
cella3.copy(sheet2.getCell(8,0)); //A9
cella3.copy(sheet2.getCell(9,0)); //A10
cella3.copy(sheet2.getCell(10,0)); //A11
*/
((SheetImpl)sheet2).setCellValue(0, 1, new FormulaImpl("=SUM(A1,A2)")); //B1
new RangeSimple(sheet2, null, 1, 0, 1, 0).copy(new RangeSimple(sheet2, null, 1, 1, 1, 10)); //B1 -> B2:B11
/* ((SheetImpl)sheet2).setCellValue(1, 1, new FormulaImpl("=SUM(A2,A3)")); //B2
((SheetImpl)sheet2).setCellValue(2, 1, new FormulaImpl("=SUM(A3,A4)")); //B3
((SheetImpl)sheet2).setCellValue(3, 1, new FormulaImpl("=SUM(A4,A5)")); //B4
((SheetImpl)sheet2).setCellValue(4, 1, new FormulaImpl("=SUM(A5,A6)")); //B5