### Question:
ListingActivity extends ViperDataBindingPassiveActivity<ListingContract.View, ActivityListingBinding> implements ListingContract.View, UserAdapter.UserClickListener { @Override public void showLoading() { mBinding.errorView.setVisibility(View.INVISIBLE); mBinding.loadingView.setVisibility(View.VISIBLE); mBinding.recyclerView.setVisibility(View.INVISIBLE); }  static void start(Activity activity, String avatarUrl, ImageView avatarImageView); @Override Observable<User> getUserClicks(); @Override void setUserList(List<User> userList); @Override void onUserClick(User user); @Override void showError(Throwable throwable); @Override void showLoading(); @Override void showContent(); @NonNull @Override ViperPresenter<ListingContract.View> createPresenter(); static final String PHOTO_URL_EXTRA_STRING; }### Answer:
@Test public void testShowLoading() throws Exception { mListingActivity.showLoading(); assertTrue("Loading indicator is not visible", mProgressBar.isShown()); assertFalse("content is visible", mRecyclerView.isShown()); assertFalse("Error textview is visible", mErrorTextView.isShown()); }