ServiceDependency extends ExternalDependency { @Override public int hashCode() { return hash(super.hashCode(), getUrl(), getMethods(), getMediaTypes(), getAuthentication()); } ServiceDependency();  ServiceDependency(final String name,
                             final String description,
                             final String url,
                             final String type,
                             final String subtype,
                             final List<String> methods,
                             final List<String> mediaTypes,
                             final String authentication,
                             final Criticality criticality,
                             final Expectations expectations); String getUrl(); List<String> getMethods(); List<String> getMediaTypes(); String getAuthentication(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String TYPE_SERVICE; static final String SUBTYPE_REST; static final String SUBTYPE_OTHER; static final String AUTH_BASIC; static final String AUTH_DIGEST; static final String AUTH_HMAC; static final String AUTH_OAUTH; static final String AUTH_NONE; }
@Test public void shouldHaveSameHashCode() { assertThat(someRestfulService().hashCode()).isEqualTo(someRestfulService().hashCode()); }