Intent nextStartedActivity = emulateAuthorizationResponseReceived(
AuthorizationManagementActivity.createResponseHandlingIntent(
RuntimeEnvironment.application,
authResponseUri));
assertThat(nextStartedActivity)
<BUG>.hasAction("COMPLETE")
.hasExtra(AuthorizationException.EXTRA_EXCEPTION);</BUG>
assertThat(AuthorizationException.fromIntent(nextStartedActivity))
.isEqualTo(AuthorizationRequestErrors.STATE_MISMATCH);
}

Intent nextStartedActivity = emulateAuthorizationResponseReceived(
AuthorizationManagementActivity.createResponseHandlingIntent(
RuntimeEnvironment.application,
authResponseUri));
assertThat(nextStartedActivity)
.hasAction("COMPLETE")
.hasData(authResponseUri)
.hasExtra(AuthorizationException.EXTRA_EXCEPTION);
assertThat(AuthorizationException.fromIntent(nextStartedActivity))
.isEqualTo(AuthorizationRequestErrors.STATE_MISMATCH);
}
