You probably aren't expecting however the `invalid...
# test
n
You probably aren't expecting however the
invalidate
function to be executed: mockito didn't mock that function because it is final. Add
open
to
fun invalidate(id: Int)
and the NPE should be gone