}
@Test
public void testStyles() {
try {
OdfOfficeStyles officeStyles = odfdoc.getDocumentStyles();
Assert.assertNotNull(officeStyles);
Assert.assertNotNull(officeStyles.getGradient("Linear_20_blue_2f_white"));
testIterator(DrawGradientElement.class, officeStyles.getGradients().iterator(), 1);
Assert.assertNotNull(officeStyles.getMarker("Arrow"));
testIterator(DrawMarkerElement.class, officeStyles.getMarker().iterator(), 1);
Assert.assertNotNull(officeStyles.getHatch("Black_20_0_20_Degrees"));
testIterator(DrawHatchElement.class, officeStyles.getHatches().iterator(), 1);
Assert.assertNotNull(officeStyles.getFillImage("Aqua"));
testIterator(DrawFillImageElement.class, officeStyles.getFillImages().iterator(), 1);
// check for some styles
Assert.assertNotNull(officeStyles.getDefaultStyle(OdfStyleFamily.Graphic));
Assert.assertNotNull(officeStyles.getStyle("standard", OdfStyleFamily.Graphic));
Assert.assertNotNull(officeStyles.getStyle("master-name-1-outline1", OdfStyleFamily.Presentation));
Iterator<OdfStyle> style_iter = officeStyles.getStylesForFamily(OdfStyleFamily.Presentation).iterator();
Assert.assertNotNull(style_iter);
Assert.assertTrue(style_iter.hasNext());
} catch (Exception e) {
Logger.getLogger(PresentationTest.class.getName()).log(Level.SEVERE, e.getMessage(), e);
Assert.fail(e.getMessage());