MainActivity extends SpotifyAbstractActivity { protected void dismissProgressDialog(ProgressDialog progressDialog) { progressDialog.dismiss(); }  @Override void onCreate(Bundle savedInstanceState); @Override void onStart(); void waitForAuthToken(); SpotifyHelper getSpotifyHelper();  }
@Test public void test_dismissProgressDialog() { ((MainActivity) getActivity()).dismissProgressDialog(progressDialog); verify(progressDialog, times(1)).dismiss(); }