I need to stub Java.util.concurrent.Executors class newFixedThreadPool method and verify it.
Executors.newFixedThreadPool(executorServiceThreadCount, threadFactory)
I tried create a global Executors value for overriding from test fragment.
lazy val executors = Executors
But newFixedThreadPool method is not reachable from executors instance. What should i do for stubbing this method. And any best practise for this ? Thanks