MainActivity extends AppCompatActivity implements ActivityCallback { @Override public void hideProgressBar() { progressBar.setVisibility(View.INVISIBLE); }  @Override void startRepoInfoFragment(Repository repository); @Override void showProgressBar(); @Override void hideProgressBar();  }
@Test public void testHideProgressBar() throws Exception { mainActivity.hideProgressBar(); verify(progressBar).setVisibility(View.INVISIBLE); }