public void testGetFontStyleParam() {
try {
SpreadsheetDocument document = SpreadsheetDocument.newSpreadsheetDocument();
Table table = document.getTableByName("Sheet1");
Font font = new Font("Arial", StyleTypeDefinitions.FontStyle.ITALIC, 17.5, Color.GREEN, StyleTypeDefinitions.TextLinePosition.REGULAR, Locale.ENGLISH);
Cell cell = table.getCellByPosition("A1");
cell.setFont(font);
cell.setStringValue("testGetFontStyle.");
TextProperties textProperties = cell.getStyleHandler().getTextPropertiesForWrite();
textProperties.setFontStyle(StyleTypeDefinitions.FontStyle.BOLDITALIC, Document.ScriptType.WESTERN);
//validate
StyleTypeDefinitions.FontStyle fontStyle = textProperties.getFontStyle(Document.ScriptType.WESTERN);
Assert.assertEquals(StyleTypeDefinitions.FontStyle.BOLDITALIC, fontStyle);