EventTracker { Application.ActivityLifecycleCallbacks createActivityLifecycleCallback() { return new Application.ActivityLifecycleCallbacks() { @Override public void onActivityResumed(Activity activity) { trackActivity(activity); } @Override public void onActivityCreated(Activity activity, Bundle savedInstanceState) {} @Override public void onActivityStarted(Activity activity) {} @Override public void onActivityPaused(Activity activity) {} @Override public void onActivityStopped(Activity activity) {} @Override public void onActivitySaveInstanceState(Activity activity, Bundle outState) {} @Override public void onActivityDestroyed(Activity activity) {} }; } EventTracker(Context context, List<EventTrackingService> services, boolean wifiOnly); void start();  }
@Test public void testCreateActivityLifecycleCallback() { EventTracker eventTracker = new EventTracker(null, null, false); assertNotNull(eventTracker.createActivityLifecycleCallback()); }