@Test void hashCode_test() { Challenge challengeA = new DefaultChallenge(); Challenge challengeB = new DefaultChallenge(challengeA.getValue()); assertThat(challengeA).hasSameHashCodeAs(challengeB); }
@Override public byte[] getValue() { return ArrayUtil.clone(value); }
DefaultChallenge implements Challenge { @Override public byte[] getValue() { return ArrayUtil.clone(value); } }
DefaultChallenge implements Challenge { @Override public byte[] getValue() { return ArrayUtil.clone(value); } DefaultChallenge(byte[] value);  DefaultChallenge(String base64urlString);  DefaultChallenge(); }
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(); }
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();  }