@@ -0,0 +1,1009 @@
+package com.abhi.fyberdemo;%0A%0Aimport android.support.test.espresso.assertion.ViewAssertions;%0Aimport android.support.test.rule.ActivityTestRule;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport static android.support.test.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.action.ViewActions.click;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withId;%0A%0A/**%0A * Created by abhi on 28/10/16.%0A */%0Apublic class MainActivityEspressoTest %7B%0A    @Rule%0A    public ActivityTestRule%3CMainActivity%3E mActivityRule =%0A            new ActivityTestRule%3C%3E(MainActivity.class);%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void ensureProgressBarDisplay()%7B%0A        onView(withId(R.id.button_get_data))%0A                .perform(click());%0A        onView(withId(R.id.progress)).%0A                check(ViewAssertions.matches(isDisplayed()));%0A    %7D%0A%7D

Add Espresso Test for MainActivity