While working on
SENTRY-1739 and other JIRAs I noticed that often all tests pass but maven isn't happy and decides that the test fails. It manifests in different ways. Combining all tests into a single jar resolves the problem.
I think that is related to some services not being started or stopped properly between tests.
Running the two available tests one by one doesn't show the problem - it only happens when tests are running one after another.