### Question:
Status implements Result, Parcelable { public void startResolutionForResult(final Activity activity, final int requestCode) throws IntentSender.SendIntentException { if (this.hasResolution()) { dialogDisplayer.displayDialog(activity, requestCode, pendingIntent); } } Status(int statusCode);  Status(int statusCode, DialogDisplayer dialogDisplayer);  Status(int statusCode, DialogDisplayer dialogDisplayer, PendingIntent pendingIntent); protected  Status(Parcel in); void startResolutionForResult(final Activity activity, final int requestCode); String getStatusMessage(); boolean hasResolution(); boolean isSuccess(); boolean isCanceled(); boolean isInterrupted(); int getStatusCode(); PendingIntent getResolution(); @Override Status getStatus(); @Override int describeContents(); @Override void writeToParcel(Parcel parcel, int i); static final int SUCCESS; static final int RESOLUTION_REQUIRED; static final int INTERRUPTED; static final int INTERNAL_ERROR; static final int TIMEOUT; static final int CANCELLED; static final int SETTINGS_CHANGE_UNAVAILABLE; static final Creator<Status> CREATOR; }### Answer:
@Test public void resolveSettings_shouldInvokeDialogDisplayer() throws IntentSender.SendIntentException { TestSettingsDialogDisplayer dialogDisplayer = new TestSettingsDialogDisplayer(); Status s = new Status(Status.RESOLUTION_REQUIRED, dialogDisplayer, pendingIntent); s.startResolutionForResult(mock(Activity.class), 1); assertThat(dialogDisplayer.isDisplayed()).isTrue(); }