How to debug maven surefire tests running in a docker container?
The answer actually can be found here: Remote debugging Java 9 in a docker container from IntelliJ IDEA
In my case this means, that running the tests with
mvn clean package -Dmaven.surefire.debug="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=*:5005"
solves the problem