/**
* The test checks that java.lang.Character exemplar store is correct
*/
public void testEncodeCharacter() {
XMLEncoder e = new XMLEncoder(System.out);
e.setExceptionListener(new ExceptionListener() {
public void exceptionThrown(Exception e) {
fail("Exception " + e.getClass() + " is thrown: "
+ e.getMessage());
}
});
try {
e.writeObject(new Character('a'));
} catch (Exception excp) {
fail("Exception " + excp.getClass() + " is thrown: "
+ excp.getMessage());
} finally {
e.close();
}
}