sonar issue, Change the assertion arguments to not compare dissimilar types