### Question:
ClientCredentials { @Override public int hashCode() { return Objects.hash(clientSecret, clientId); } ClientCredentials(@Nonnull String clientId, @Nonnull String clientSecret); String getSecret(); String getId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void hashCoded() { int cutHashCode = cut.hashCode(); assertThat(cutHashCode, is(not(0))); assertThat(cutHashCode, is(new ClientCredentials("clientId", "clientSecret").hashCode())); assertThat(cutHashCode, is(not(new ClientCredentials("clientId2", "clientSecret").hashCode()))); }