Make tests compatible with mockito-extended am: ad8f23fef4

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15165000

Change-Id: I8e5ea50c0ff34a069681d878c3f8668d92cfae2b