OAuthHandler extends AuthHandler { Intent newIntent(Activity activity) { final Intent intent = new Intent(activity, OAuthActivity.class); intent.putExtra(OAuthActivity.EXTRA_AUTH_CONFIG, getAuthConfig()); return intent; } OAuthHandler(TwitterAuthConfig authConfig, Callback<TwitterSession> callback,
            int requestCode); @Override boolean authorize(Activity activity);  }
@Test public void testNewIntent() { final Activity mockActivity = mock(Activity.class); final Intent intent = authHandler.newIntent(mockActivity); assertEquals(mockAuthConfig, intent.getParcelableExtra(OAuthActivity.EXTRA_AUTH_CONFIG)); }