### Question:
Secret { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Secret other = (Secret) obj; if (value == null) { if (other.value != null) { return false; } } else if (!value.equals(other.value)) { return false; } return true; } 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 shouldBeEqual_withSameSecretValue() { final String secretValue = Randoms.randomString(5); final Secret secret1 = new Secret(secretValue); final Secret secret2 = new Secret(secretValue); final boolean equals1 = secret1.equals(secret2); final boolean equals2 = secret2.equals(secret1); assertTrue(equals1); assertTrue(equals2); }