Integrate espresso w/ RecyclerView. Hi Junit4 !

This change also adds support for running testes on host machine.

Bug: 20258423
Change-Id: Ic8bd569d852a7d6d1c74c5fc4a4bf16703f71e52
diff --git a/v7/recyclerview/build.gradle b/v7/recyclerview/build.gradle
index a8087d4..25b686d 100644
--- a/v7/recyclerview/build.gradle
+++ b/v7/recyclerview/build.gradle
@@ -5,6 +5,9 @@
 dependencies {
     compile project(':support-v4')
     compile project(':support-annotations')
+    androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
+    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
+    testCompile 'junit:junit:4.12'
 }
 
 android {
@@ -13,6 +16,7 @@
 
     defaultConfig {
         minSdkVersion 7
+        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
     }
 
     sourceSets {
@@ -21,6 +25,7 @@
         main.res.srcDir 'res'
 
         androidTest.setRoot('tests')
+        test.java.srcDir 'jvm-tests'
         androidTest.java.srcDir 'tests/src'
         androidTest.res.srcDir 'tests/res'
         androidTest.manifest.srcFile 'tests/AndroidManifest.xml'
@@ -30,6 +35,14 @@
         // TODO: fix errors and reenable.
         abortOnError false
     }
+
+    packagingOptions {
+        exclude 'LICENSE.txt'
+    }
+
+    testOptions {
+        unitTests.returnDefaultValues = true
+    }
 }
 
 android.libraryVariants.all { variant ->