OAuth1aService extends OAuthService { public String buildCallbackUrl(TwitterAuthConfig authConfig) { return Uri.parse(CALLBACK_URL).buildUpon() .appendQueryParameter("version", getTwitterCore().getVersion()) .appendQueryParameter("app", authConfig.getConsumerKey()) .build() .toString(); } OAuth1aService(TwitterCore twitterCore, TwitterApi api); void requestTempToken(final Callback<OAuthResponse> callback); String buildCallbackUrl(TwitterAuthConfig authConfig); void requestAccessToken(final Callback<OAuthResponse> callback,
            TwitterAuthToken requestToken, String verifier); String getAuthorizeUrl(TwitterAuthToken requestToken); static OAuthResponse parseAuthResponse(String response);  }
@Test public void testBuildCallbackUrl() { final String callbackUrl = service.buildCallbackUrl(authConfig); assertEquals(String.format("twittersdk: twitterCore.getVersion(), authConfig.getConsumerKey()), callbackUrl); }