/**
* Tests the printStackTrace() operation.
*/
public void testPrintStackTrace() {
Localizable outMsg = new DummyLocalizable("outer message");
Localizable inMsg = new DummyLocalizable("inner message");
MathException cause = new MathConfigurationException(inMsg);
MathException ex = new MathException(cause, outMsg);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(baos);
ex.printStackTrace(ps);