@Test
public void getResponseShouldReturnEmptyWhenSomethingWentWrong() {

    Intent intent = mock(Intent.class);
    AuthenticationResponse response =
            AuthenticationClient.getResponse(Activity.RESULT_CANCELED, intent);
    assertEquals(AuthenticationResponse.Type.EMPTY, response.getType());
    assertNull(response.getAccessToken());
}