Hello @fassen, It definitely looks like there is an issue.
However, following the current state of the rule, it is not a false positive on the first verify but a false negative on the second one.
S6073 has a known limitation that prevents it from exploring chains of method calls: it will not go further than looking at the return statements in the bodies of expected or expected2.
The issue stems from the fact when it detects a method call, it assumes it eventually leads to an argument matcher.
On the first verify, expected “returns” an argument matcher and so "hello" should be wrapped in a eq call and replaced by eq("hello").
For the second verify, the constructor call is mistakenly not detected as an argument matcher and since the second argument is not wrapped in an argument matcher, no issue is raised.
A quick fix for now would be to replace "hello" with eq("hello") but ultimately, the rule should be reworked to be more flexible around parameters returned from a method call.