@Test
public void onActivityResultHandlesError() throws Exception {

    XingOAuth xingOAuth = buildTestXingOauth();
    Intent data = new Intent();
    OAuthResponse response = xingOAuth.onActivityResult(Shared.REQUEST_CODE, Activity.RESULT_CANCELED, data);
    assertThat(response).isNotNull();
    assertThat(response.isSuccessful()).isFalse();
    assertThat(response.token()).isNullOrEmpty();
    assertThat(response.tokenSecret()).isNullOrEmpty();
}