assertEquals(1, parent.getAttributeCount());
assertNull(parent.getResolveParent());
assertEquals(2, child.getAttributeCount());
assertNotNull(child.getResolveParent());
parent.addAttribute(StyleConstants.Bold, Boolean.FALSE);
child.addAttribute(StyleConstants.Bold, Boolean.TRUE);
assertFalse(((Boolean) parent.getAttribute(StyleConstants.Bold)).booleanValue());
assertTrue(((Boolean) child.getAttribute(StyleConstants.Bold)).booleanValue());
// Add styles with diff parameters
Style parent1 = textPane.addStyle("p1", null);
Style parent2 = textPane.addStyle("p2", null);