/*
* NamedStyle(String, Style)
*/
public void testNamedStyleStringNullStyle() {
Style parent = StyleContext.getDefaultStyleContext().new NamedStyle("parentName", null);
parent.addAttribute("key", "value");
ns = StyleContext.getDefaultStyleContext().new NamedStyle(null, parent);
assertEquals(parent, ns.getResolveParent());
assertSame(parent, ns.getResolveParent());
// Using getName we should have null
assertNull(ns.getName());
// But using get attribute, we should get parent name 'cause this