MultipleTrackerAdapter implements TrackerAdapter { @Override public void logException(Throwable e) { for (TrackerAdapter tracker : this.trackers) { tracker.logException(e); } } 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 logException() throws Exception { Exception ex = new IllegalArgumentException(); this.subject.logException(ex); verify(this.tracker1).logException(ex); verify(this.tracker2).logException(ex); }