How to mock file reader and library internal methods I’m trying to write a unit test case for this method: