Stubbing in ThreadPoolDispatcher