you're mocking a final method, and passing the res...
# test
n
you're mocking a final method, and passing the result of
any()
to it. The final method gets executed, and
any()
returns
null
, hence a
NullPointerException
.