XSSFWorkbook hssfWorkbook = new XSSFWorkbook();
ExcelColorProducer colorProducer = new StaticExcelColorSupport();
ExcelFontFactory ff = new ExcelFontFactory(hssfWorkbook, colorProducer);
CreationHelper ch = hssfWorkbook.getCreationHelper();
FastExcelTextExtractor te = new FastExcelTextExtractor(colorProducer, ff, ch);
Element element = report.getReportHeader().getElement(0);
Object compute = te.compute(element, runtime);
assertTrue(compute instanceof RichTextString);
XSSFRichTextString rt = (XSSFRichTextString) compute;
assertEquals(4, rt.numFormattingRuns());
}