DefaultChallenge implements Challenge { @Override public byte[] getValue() { return ArrayUtil.clone(value); } DefaultChallenge(byte[] value);  DefaultChallenge(String base64urlString);  DefaultChallenge(); @Override byte[] getValue(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test void hashCode_test() { Challenge challengeA = new DefaultChallenge(); Challenge challengeB = new DefaultChallenge(challengeA.getValue()); assertThat(challengeA).hasSameHashCodeAs(challengeB); }