}
public void testGetParagraphAttributes() {
// init paragraph attributeSet
textPane.setCaretPosition(1);
Element paragraph = textPane.getStyledDocument().getParagraphElement(
textPane.getCaretPosition());
attrs = new SimpleAttributeSet();
StyleConstants.setStrikeThrough(attrs, true);
StyleConstants.setAlignment(attrs, StyleConstants.ALIGN_CENTER);
textPane.getStyledDocument().setParagraphAttributes(paragraph.getStartOffset(),
paragraph.getEndOffset() - paragraph.getStartOffset(), attrs, true);
// tests
AttributeSet textAttrs;
textPane.setCaretPosition(1);
textAttrs = textPane.getParagraphAttributes();
assertFalse(StyleConstants.isUnderline(textAttrs));