HttpSessionChallengeRepository implements ChallengeRepository { @Override public Challenge generateChallenge() { return new DefaultChallenge(); }  @Override Challenge generateChallenge(); @Override void saveChallenge(Challenge challenge, HttpServletRequest request); @Override Challenge loadChallenge(HttpServletRequest request); void setSessionAttributeName(String sessionAttributeName);  }
@Test public void generateChallenge_test() { Challenge challenge = target.generateChallenge(); assertThat(challenge).isNotNull(); assertThat(challenge.getValue()).hasSize(16); }