    @Test
    public void shouldLaunchIntentForPassedActivity() {

        AuthorizationRequest authorizationRequest = mock(AuthorizationRequest.class);
        Activity activity = mock(Activity.class);

        when(authorizationRequest.toUri()).thenReturn(Uri.parse("to://me"));
        Mockito.doNothing().when(activity).startActivity(any(Intent.class));
        ArgumentCaptor<Intent> captor = ArgumentCaptor.forClass(Intent.class);

        AuthorizationClient.openLoginInBrowser(activity, authorizationRequest);

        verify(activity, times(1)).startActivity(captor.capture());
        assertEquals(Intent.ACTION_VIEW, captor.getValue().getAction());
        assertEquals("to://me", captor.getValue().getData().toString());
    }