Removed deprecated method calls of assertj in the tests