ConsulFactory { @Override public int hashCode() { return Objects.hash( endpoint, serviceName, enabled, servicePort, adminPort, serviceAddress, tags, retryInterval, checkInterval, deregisterInterval, aclToken, serviceMeta, servicePing); }  @JsonProperty boolean isEnabled(); @JsonProperty void setEnabled(boolean enabled); @JsonProperty HostAndPort getEndpoint(); @JsonProperty void setEndpoint(HostAndPort endpoint); @JsonProperty Optional<String> getServiceId(); @JsonProperty void setServiceId(@Nullable String serviceId); @Nullable @JsonProperty String getServiceName(); @JsonProperty void setSeviceName(@Nullable String serviceName); @JsonProperty Optional<Iterable<String>> getTags(); @JsonProperty void setTags(Iterable<String> tags); @JsonProperty Optional<Integer> getServicePort(); @JsonProperty void setServicePort(Integer servicePort); @JsonProperty Optional<Integer> getAdminPort(); @JsonProperty void setAdminPort(Integer adminPort); @JsonProperty Optional<String> getServiceAddress(); @JsonProperty void setServiceAddress(String serviceAddress); @JsonProperty Optional<Duration> getRetryInterval(); @JsonProperty void setRetryInterval(@Nullable Duration interval); @JsonProperty Duration getCheckInterval(); @JsonProperty void setCheckInterval(Duration interval); @JsonProperty Duration getDeregisterInterval(); @JsonProperty void setDeregisterInterval(Duration interval); @JsonProperty Optional<String> getAclToken(); @JsonProperty void setAclToken(@Nullable String aclToken); @JsonProperty Optional<Map<String, String>> getServiceMeta(); @JsonProperty void setServiceMeta(Map<String, String> serviceMeta); @JsonProperty boolean isServicePing(); @JsonProperty void setServicePing(boolean servicePing); Optional<String> getServiceSubnet(); void setServiceSubnet(String serviceSubnet); void setServiceAddressSupplier(Supplier<String> serviceAddressSupplier); Optional<Supplier<String>> getServiceAddressSupplier(); @JsonIgnore Consul build(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testHashCode() { final ConsulFactory actual = createFullyPopulatedConsulFactory(); final ConsulFactory expected = createFullyPopulatedConsulFactory(); assertThat(actual.hashCode()).isEqualTo(expected.hashCode()); }