How to add unit test for RepositoryApi.ts which is located in '/package/lib/service/plugin

Can anyone show how can I add unit test for RepositoryApi class?

There must be some existing tests in packages/lib. Look at these for inspiration