SimpleAttributeSet as1 = new SimpleAttributeSet();
as1.addAttribute("key1", "value1");
SimpleAttributeSet as2 = new SimpleAttributeSet();
as2.addAttribute("key2", "value2");
try {
doc.insertString(0, "testReplaceSelection", as1);
doc.insertString(4, "INSERT", as2);
} catch (final BadLocationException e) {
assertFalse("unexpected exception :" + e.getMessage(), true);
}
//temporarily commented-out: HTMLEditorKit not implemented