TrackerBuilder { @Override public int hashCode() { int result = mApiUrl.hashCode(); result = 31 * result + mSiteId; result = 31 * result + mTrackerName.hashCode(); return result; } TrackerBuilder(String apiUrl, int siteId, String trackerName); static TrackerBuilder createDefault(String apiUrl, int siteId); String getApiUrl(); int getSiteId(); TrackerBuilder setTrackerName(String name); String getTrackerName(); TrackerBuilder setApplicationBaseUrl(String domain); String getApplicationBaseUrl(); Tracker build(Matomo matomo); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testHashCode() { TrackerBuilder trackerBuilder = new TrackerBuilder(mTestUrl, 1337, "Tracker"); int result = mTestUrl.hashCode(); result = 31 * result + 1337; result = 31 * result + "Tracker".hashCode(); assertThat(result, is(trackerBuilder.hashCode())); }