This test fails on JDK20-Ea
Mockito cannot mock this class: class java.net.InetAddress. Mockito can only mock non-private & non-final classes. If you're not sure why you're getting this error, please report to the mailing list.
if I try to upgrade Mockito to 4.9.0 the error is
Cannot mock/spy class java.net.InetAddress
Mockito cannot mock/spy because :
- sealed class