public void testReplaceSelectionWithAttributes() {
if (true) {
throw new UnsupportedOperationException("Not implemented");
}
AbstractDocument doc = new DefaultStyledDocument();
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);