Jwt implements AccessToken { @Override public String stringRepresentation() { return stringRepresentation; } Jwt(JwtHeaderContent headerContent, JwtBodyContent bodyContent);  Jwt(JwtHeaderContent headerContent, JwtBodyContent bodyContent, byte[] signatureData);  Jwt(String jwtToken); @Override boolean equals(Object obj); JwtBodyContent getBodyContent(); JwtHeaderContent getHeaderContent(); @Override String getIdentity(); byte[] getSignatureData(); @Override int hashCode(); boolean isExpired(); boolean isExpired(Date lifeTimePredefined); @Override String stringRepresentation();  }
@Test public void instantiate_fromString() throws CryptoException { Jwt jwt = this.fake.generateToken(); Jwt importedJwt = new Jwt(jwt.stringRepresentation()); assertEquals(jwt, importedJwt); assertEquals(jwt.stringRepresentation(), importedJwt.stringRepresentation()); }