/**
* The test checks that encoder can handle writeExpression in initialize
*/
public void testEncodeExpressionAsStatement() {
XMLEncoder e = new XMLEncoder(System.out);
e.setExceptionListener(new ExceptionListener() {
public void exceptionThrown(Exception e) {
fail("Exception " + e.getClass() + " is thrown: "
+ e.getMessage());
}
});