@Test public void ShouldDelegateToBackup_WhenConnectIsCalled() throws Exception { reset(getBackup()); activity.connectClient(); verify(getBackup()).start(); }
public void connectClient() { backup.start(); }
BackupActivity extends AppCompatActivity { public void connectClient() { backup.start(); } }
BackupActivity extends AppCompatActivity { public void connectClient() { backup.start(); }  }
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); }
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);  }