    @Test
    public void getAuthorizationUrl_whenThereIsARedirectUri() throws Exception {

        OAuth2Credentials oAuth2Credentials = new OAuth2Credentials.Builder()
                .setClientSecrets("CLIENT_ID", "CLIENT_SECRET")
                .setRedirectUri("https://localhost:8181/OAuth2Callback")
                .setScopes(Arrays.asList(Scope.PROFILE))
                .setCustomScopes(Arrays.asList("profile"))
                .build();

        assertEquals("https://login.uber.com/oauth/v2/authorize?client_id=CLIENT_ID" +
                        "&response_type=code&scope=profile&redirect_uri=https%3A%2F%2Flocalhost%3A8181%2FOAuth2Callback",
                oAuth2Credentials.getAuthorizationUrl());
    }