DatasourceDependency extends ExternalDependency { @Override public int hashCode() { return Objects.hash(super.hashCode(), getDatasources()); } DatasourceDependency();  DatasourceDependency(final String name,
                                final String description,
                                final String type,
                                final String subtype,
                                final List<Datasource> datasources,
                                final Criticality criticality,
                                final Expectations expectations); List<Datasource> getDatasources(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String TYPE_DB; static final String TYPE_QUEUE; static final String SUBTYPE_CASSANDRA; static final String SUBTYPE_MONGODB; static final String SUBTYPE_REDIS; static final String SUBTYPE_ELASTICSEARCH; static final String SUBTYPE_KAFKA; }
@Test public void shouldHaveSameHashCode() { assertThat(someMongoDb().hashCode()).isEqualTo(someMongoDb().hashCode()); }