How to mock capacitor dependecy

I’m writing some unit test for a file system service in my project. It has a capacitor plugin dependency so I need to mock it. Specifically Write mock class for Capacitor FileSystemPlugin for FileSystem.writeFile() and FileSystem.readFile(). How do I do this?