The test fails, because the stacktrace is already set with an actual array. How can I test this here without that failure?