MultipleTrackerAdapter implements TrackerAdapter { @Override public void logPageView(String name) { for (TrackerAdapter tracker : this.trackers) { tracker.logPageView(name); } } MultipleTrackerAdapter(); void addTracker(TrackerAdapter tracker); @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.tracker1).logPageView(eq("test")); verify(this.tracker2).logPageView(eq("test")); }