*
* @param harness the test harness (<code>null</code> not permitted).
*/
public void test(TestHarness harness)
{
SimpleAttributeSet s = new SimpleAttributeSet();
// check default
harness.check(StyleConstants.getFontFamily(s), "Monospaced");
// check local setting
StyleConstants.setFontFamily(s, "XYZ");
harness.check(StyleConstants.getFontFamily(s), "XYZ");
// check resolving parent setting
s.removeAttribute(StyleConstants.FontFamily);
SimpleAttributeSet parent = new SimpleAttributeSet();
s.setResolveParent(parent);
StyleConstants.setFontFamily(parent, "ABC");
harness.check(StyleConstants.getFontFamily(s), "ABC");
// try null argument