(JEditorPane.createEditorKitForContentType("foobar").getClass(),
HTMLEditorKit.class);
// Explicitly setting the EditorKit takes precedence over the
// registered type
pane.setEditorKitForContentType ("foobar", new RTFEditorKit());
harness.check
(pane.getEditorKitForContentType("foobar").getClass(),
RTFEditorKit.class);
// We can set the EditorKit for content types previously unintroduced
pane.setEditorKitForContentType ("tony", new RTFEditorKit());
harness.check
(pane.getEditorKitForContentType("tony").getClass(),
RTFEditorKit.class);
// But this only affects the instance of JEditorPane, not the class itself
harness.check (JEditorPane.createEditorKitForContentType("tony") == null);