### Question:
Secret { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (value == null ? 0 : value.hashCode()); return result; } private  Secret();  Secret(final String value); String value(); @Override int hashCode(); @Override boolean equals(final Object obj); static final Secret NULL; }### Answer:
@Test public void shouldReturnSameHashcode_withSameSecretValue() { final String secretValue = Randoms.randomString(5); final Secret secret1 = new Secret(secretValue); final Secret secret2 = new Secret(secretValue); final int hashcode1 = secret1.hashCode(); final int hashcode2 = secret2.hashCode(); assertEquals(hashcode1, hashcode2); }