public void testSerializableThrowable() {
SerializableThrowable expected = new SerializableThrowable(null, "msg");
expected.setDesignatedType("x", true);
expected.setStackTrace(new StackTraceElement[] {new StackTraceElement("c", "m", "f", 42)});
expected.initCause(new SerializableThrowable(null, "cause"));
checkException(expected, new AsyncCallback<SerializableThrowable>() {
@Override
public void onFailure(Throwable caught) {
TestSetValidator.rethrowException(caught);