public void testDefaultStyles() {
try {
OdfDocument doc = OdfDocument.loadDocument(ResourceUtilities.getAbsolutePath(TEST_FILE));
doc.getDocumentStyles();
OdfDefaultStyle oDSG = doc.getDocumentStyles().getDefaultStyle(OdfStyleFamily.Graphic);
Assert.assertEquals(oDSG.getFamilyName(), OdfStyleFamily.Graphic.getName());
String prop1 = oDSG.getProperty(StyleGraphicPropertiesElement.ShadowOffsetX);
Assert.assertEquals(prop1, "0.1181in");
OdfDefaultStyle oDSP = doc.getDocumentStyles().getDefaultStyle(OdfStyleFamily.Paragraph);
Assert.assertEquals(oDSP.getFamilyName(), OdfStyleFamily.Paragraph.getName());
String prop2 = oDSP.getProperty(StyleTextPropertiesElement.FontName);
Assert.assertEquals(prop2, "Thorndale");
String prop3 = oDSP.getProperty(StyleTextPropertiesElement.LetterKerning);
Assert.assertEquals(prop3, "true");
OdfDefaultStyle oDST = doc.getDocumentStyles().getDefaultStyle(OdfStyleFamily.Table);
Assert.assertEquals(oDST.getFamilyName(), OdfStyleFamily.Table.getName());
String prop4 = oDST.getProperty(StyleTablePropertiesElement.BorderModel);
Assert.assertEquals(prop4, "collapsing");
OdfDefaultStyle oDSTR = doc.getDocumentStyles().getDefaultStyle(OdfStyleFamily.TableRow);
Assert.assertEquals(oDSTR.getFamilyName(), OdfStyleFamily.TableRow.getName());
String prop5 = oDSTR.getProperty(StyleTableRowPropertiesElement.KeepTogether);
Assert.assertEquals(prop5, "auto");
} catch (Exception e) {
Logger.getLogger(DefaultStylesTest.class.getName()).log(Level.SEVERE, e.getMessage(), e);