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