Fix test broken by JAva stacktrace rewriting change.