In my application, when the user clicks on a "Register" button, the RegisterActivity is launched. Once the user fills in the form, the details are posted to a web service and if registration succeeds, RegisterActivity finishes with `RESULT_OK`. This is summarized in the code sample below:

```java
public void submitRegistration() {

    showProgressDialog(R.string.registration, R.string.please_wait);  

    getWebApi().register(buildRegistrationFromUI(), new Callback<ApiResponse>() {

        @Override
        public void success(ApiResponse apiResponse, Response response) {     
            hideProgressDialog();
            setResult(RESULT_OK);
            finish();
        }

        @Override
        public void failure(RetrofitError error) {
            hideProgressDialog();
            showErrorDialog(ApiError.parse(error));
        }
    });
}

```

Using Espresso, how can I check that the activity finished with `setResult(RESULT_OK)`?

Please note: I do **NOT** want to create a mock intent. I want to check the intent result status.