### Question:
JWTSigningServiceImpl implements JWTSigningService { @Override public boolean verifyToken(String token) { try { JWSVerifier verifier = new MACVerifier(getKey(config.getJwtInboundKey())); JWSObject jwsObject = JWSObject.parse(token); return jwsObject.verify(verifier); } catch (Exception e) { throw new OnlyOfficeException("Can't verify payload. Reason: " + e.getMessage(), e); } }  @Override boolean verifyToken(String token); @Override String signJsonPayload(String jsonString); void setConfig(OnlyOfficeConfig config);  }### Answer:
@Test public void verifyJsonPayload() { String jsonString = "{\n" + " \"sub\": \"1234567890\",\n" + " \"name\": \"John Doe\",\n" + " \"iat\": 1516239022\n" + "}"; assertTrue(signingService.verifyToken( "eyJhbGciOiJIUzI1NiJ9.ewogICJzdWIiOiAiMTIzNDU2Nzg5MCIsCiAgIm5hbWUiOiAiSm9obiBEb2UiLAogICJpYXQiOiAxNTE2MjM5MDIyCn0.0Gh1Ilzj9aeD2gxmjTn2U-Yo-NxpW8hMet_CY6bDkKg")); }