@Test public void testInitialize() { FacebookController.FacebookSdkDelegate facebookSdk = mock(FacebookController.FacebookSdkDelegate.class); FacebookController controller = new FacebookController(facebookSdk); Context context = mock(Context.class); int callbackRequestCodeOffset = 1234; controller.initialize(context, callbackRequestCodeOffset); verify(facebookSdk).initialize(context, callbackRequestCodeOffset); }
public void initialize(Context context, int callbackRequestCodeOffset) { facebookSdkDelegate.initialize(context, callbackRequestCodeOffset); }
FacebookController { public void initialize(Context context, int callbackRequestCodeOffset) { facebookSdkDelegate.initialize(context, callbackRequestCodeOffset); } }
FacebookController { public void initialize(Context context, int callbackRequestCodeOffset) { facebookSdkDelegate.initialize(context, callbackRequestCodeOffset); } FacebookController(FacebookSdkDelegate facebookSdkDelegate);   FacebookController(); }
FacebookController { public void initialize(Context context, int callbackRequestCodeOffset) { facebookSdkDelegate.initialize(context, callbackRequestCodeOffset); } FacebookController(FacebookSdkDelegate facebookSdkDelegate);   FacebookController(); void initialize(Context context, int callbackRequestCodeOffset); boolean onActivityResult(int requestCode, int resultCode, Intent data); Task<Map<String, String>> authenticateAsync(
            Activity activity,
            Fragment fragment,
            LoginAuthorizationType authorizationType,
            Collection<String> permissions); Map<String, String> getAuthData(AccessToken accessToken); void setAuthData(Map<String, String> authData); }
FacebookController { public void initialize(Context context, int callbackRequestCodeOffset) { facebookSdkDelegate.initialize(context, callbackRequestCodeOffset); } FacebookController(FacebookSdkDelegate facebookSdkDelegate);   FacebookController(); void initialize(Context context, int callbackRequestCodeOffset); boolean onActivityResult(int requestCode, int resultCode, Intent data); Task<Map<String, String>> authenticateAsync(
            Activity activity,
            Fragment fragment,
            LoginAuthorizationType authorizationType,
            Collection<String> permissions); Map<String, String> getAuthData(AccessToken accessToken); void setAuthData(Map<String, String> authData); static final int DEFAULT_AUTH_ACTIVITY_CODE; }