I have a method UserService.getUser(userId: UserId) that returns an Optional in Java. So I want to mock that method call in my Kotlin unit test.
UserService.getUser(userId: UserId)
This was