@Override
    public boolean isIdleNow() {
        return mIsIdleNow.get();
    }
A very simple implementation of {@link IdlingResource}.
<p>
Consider using CountingIdlingResource from espresso-contrib package if you use this class from
multiple threads or need to keep a count of pending operations.
ui/espresso/IdlingResourceSample/app/src/main/java/com/example/android/testing/espresso/IdlingResourceSample/IdlingResource/SimpleIdlingResource.java