You should retrieve the MyUserService
plugin instance from the play application and invoke the find method on the retrieved MyUserService
instance.
How you're doing it (as shown above) find
would have to be defined in a MyUserService
object.
Update: The MyUserService
plugin can be retrieved like this:
"retrieve a user by UserId" in new WithApplication {
val userService = implicitApp.plugin(classOf[MyUserService]).get
...
}