public function testApplyTheStylesOfTheWorkbook()
{
$phpExcelStyle = $this->getPhpExcelStyleMock();
$phpExcelStyle->expects($this->once())->method('applyFromArray');
$phpExcel = $this->getPhpExcelMock();
$phpExcel->expects($this->once())->method('getDefaultStyle')->will($this->returnValue($phpExcelStyle));
$workbook = $this->createWorkbook($phpExcel);
$workbook->addStyles(new StyleCollection([new Fill(), new Font()]));
$styleWorker = $this->getStyleWorkerMock();
$styleWorker->expects($this->once())->method('convertStyles');
$writer = new Writer($this->getPhpExcelWriterInterfaceMock(), $this->getTableWorkerMock(), $this->getCellWorkerMock(), $styleWorker);
$phpExcel = $writer->convert($workbook);
$this->assertInstanceOf('PHPExcel', $phpExcel);
}