### Question:
SpardaJwtService { public String getPsuId(String jwtToken) { try { SignedJWT signedJWT = SignedJWT.parse(jwtToken); JWTClaimsSet claimsSet = signedJWT.getJWTClaimsSet(); return claimsSet.getSubject(); } catch (ParseException e) { throw new Xs2aAdapterException("Sparda JWT parsing exception", e); } }  String getPsuId(String jwtToken);  }### Answer:
@Test void getPsuId_failure_ParseExceptionIsThrown() { assertThrows(RuntimeException.class, () -> spardaJwtService.getPsuId(WRONG_TOKEN)); }
@Test void getPsuId_success() { String actualPsuId = spardaJwtService.getPsuId(CORRECT_TOKEN); assertEquals(EXPECTED_PSU_ID, actualPsuId); }