Cleanup imports of mockito2 not to include bytebuddy.

This is a follow up from ag/2589347

Bug: 63999442
Test: None
Change-Id: I846c0a566c690d84edffe0ec792f7d270e40311e
diff --git a/v7/appcompat/build.gradle b/v7/appcompat/build.gradle
index 102c779..90662f8 100644
--- a/v7/appcompat/build.gradle
+++ b/v7/appcompat/build.gradle
@@ -6,14 +6,10 @@
     api project(':support-vector-drawable')
     api project(':animated-vector-drawable')
 
-    androidTestImplementation (libs.test_runner) {
-        exclude module: 'support-annotations'
-    }
-    androidTestImplementation (libs.espresso_core) {
-        exclude module: 'support-annotations'
-    }
-    androidTestImplementation libs.mockito_core
-    androidTestImplementation libs.dexmaker_mockito
+    androidTestImplementation libs.test_runner,      { exclude module: 'support-annotations' }
+    androidTestImplementation libs.espresso_core,    { exclude module: 'support-annotations' }
+    androidTestImplementation libs.mockito_core,     { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
+    androidTestImplementation libs.dexmaker_mockito, { exclude group: 'net.bytebuddy' } // DexMaker has it"s own MockMaker
     androidTestImplementation project(':support-testutils')
 }