### Question:
DefaultValidatingJWTProcessor implements JWTProcessor { @Override public JsonObject process(String jwt) throws JWTException { try { String rawJwt = delegate.process(jwt, null).toString(); return Json.createReader(new StringReader(rawJwt)).readObject(); } catch (ParseException | BadJOSEException | JOSEException e) { throw new JWTException("Unable to parse jwt", e); } }  @PostConstruct void init(); @Override JsonObject process(String jwt);  }### Answer:
@Test public void shouldNotAcceptOutOfDateJWT() throws Exception { try (InputStream stream = DefaultValidatingJWTProcessorTest.class.getResourceAsStream("/samplejwt.txt")) { String jwt = IOUtils.toString(stream, "UTF-8"); assertThatThrownBy(() -> defaultValidatingJWTProcessor.process(jwt)) .isInstanceOf(JWTException.class) .hasMessage("Unable to parse jwt"); } }