OkReplay
Record and replay OkHttp network interaction in your tests
...On subsequent runs, it intercepts those requests and serves the recorded responses instead of making real network calls. This allows tests to be executed offline, reduces flakiness due to network variability, and isolates the test environment from external dependencies. OkReplay integrates with testing frameworks such as JUnit and Espresso, so it fits naturally into Android testing pipelines. Because recording only happens when running with the annotation, production code paths remain unaffected. It’s especially useful when your app’s logic depends on network APIs and you want faster, more reliable unit or integration tests.