FacebookTracker implements TrackerAdapter { @Override public void logPageView(String name) { logger.logEvent(name); } FacebookTracker(AppEventsLogger logger); @Override void logPageView(String name); @Override void logEvent(Map<String, Object> eventData); @Override void setUserProperty(String key, Object value); @Override void logException(Throwable e);  }
@Test public void logPageView() throws Exception { this.subject.logPageView("test"); verify(this.logger).logEvent("test"); }