MultipleTrackerAdapter implements TrackerAdapter { @Override public void setUserProperty(String key, Object value) { for (TrackerAdapter tracker : this.trackers) { tracker.setUserProperty(key, value); } } 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 setUserProperty() throws Exception { this.subject.setUserProperty("key", "value"); verify(this.tracker1).setUserProperty("key", "value"); verify(this.tracker2).setUserProperty("key", "value"); }