How to emulate geolocation CDP with Selenium 4 JUnit?

Tell me how to emulate geolocation CDP with Selenium 4 JUnit.