### Question:
DoubleJWT { public Tokens generateTokens(long identity) { String access = this.generateToken(ACCESS_TYPE, identity, LIN_SCOPE, this.accessExpire); String refresh = this.generateToken(REFRESH_TYPE, identity, LIN_SCOPE, this.refreshExpire); return new Tokens(access, refresh); } DoubleJWT(Algorithm algorithm, long accessExpire, long refreshExpire);  DoubleJWT(String secret, long accessExpire, long refreshExpire); String generateToken(String tokenType, long identity, String scope, long expire); Map<String, Claim> decodeAccessToken(String token); Map<String, Claim> decodeRefreshToken(String token); String generateAccessToken(long identity); String generateRefreshToken(long identity); Tokens generateTokens(long identity); JWTVerifier getAccessVerifier(); JWTVerifier getRefreshVerifier(); JWTCreator.Builder getBuilder(); Algorithm getAlgorithm(); Long getAccessExpire(); Long getRefreshExpire();  }### Answer:
@Test public void generateTokens() { DoubleJWT jwt = new DoubleJWT("secret", 10000, 20000); Tokens tokens = jwt.generateTokens(1); assertNotNull(tokens.getAccessToken()); assertNotNull(tokens.getRefreshToken()); log.info("{}", tokens); Map<String, Claim> claimMap = jwt.decodeAccessToken(tokens.getAccessToken()); assertEquals(LIN_SCOPE, claimMap.get("scope").asString()); assertEquals(ACCESS_TYPE, claimMap.get("type").asString()); }