BackupActivity extends AppCompatActivity { public void disconnectClient() { backup.stop(); }  @Override void onCreate(final Bundle savedInstanceState); void downloadFromDrive(DriveFile file); void connectClient(); void disconnectClient(); boolean onOptionsItemSelected(MenuItem item);  }
@Test public void ShouldDelegateToBackup_WhenDisconnectIsCalled() throws Exception { reset(getBackup()); activity.disconnectClient(); verify(getBackup()).stop(); }