I am trying to test if a correct middlewares are assigned to a specific route. For that, I need to check if the router\'s method is called. I mocked the express router as fo