### Question:
DirectoryV3TotpPostResponse { @Override public int hashCode() { return Objects.hash(secret, algorithm, period, digits); } @JsonCreator  DirectoryV3TotpPostResponse(@JsonProperty("secret") String secret,
                                       @JsonProperty("algorithm") String algorithm,
                                       @JsonProperty("period") int period,
                                       @JsonProperty("digits") int digits); String getSecret(); String getAlgorithm(); int getPeriod(); int getDigits(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void hashEqualIfObjectsAreEqual() { assertEquals(new DirectoryV3TotpPostResponse("secret", "algorithm", 1234, 4321).hashCode(), transport.hashCode()); }
@Test public void hashNotEqualWithDifferentSecret() { assertNotEquals(new DirectoryV3TotpPostResponse("secret1", "algorithm", 1234, 4321).hashCode(), transport.hashCode()); }
@Test public void hashNotEqualWithDifferentAlgorithm() { assertNotEquals(new DirectoryV3TotpPostResponse("secret", "algorithm1", 1234, 4321).hashCode(), transport.hashCode()); }
@Test public void hashNotEqualWithDifferentDigits() { assertNotEquals(new DirectoryV3TotpPostResponse("secret", "algorithm", 12345, 4321).hashCode(), transport.hashCode()); }
@Test public void hashNotEqualWithDifferentPeriod() { assertNotEquals(new DirectoryV3TotpPostResponse("secret", "algorithm", 1234, 43210).hashCode(), transport.hashCode()); }