Mocking capacitor preferences

Hello,

Does anybody know how to mock capacitor preferences with Jasmine? It seems that it is not as trivial as mocking a regular Service.

Thanks for the help in advance.