	@Test
	public void testCreateJWT() throws Exception {

		long future =  1562389592;

		KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
		
		keyGen.initialize(4096, new SecureRandom(new byte[] { 1, 2, 4} ));
				
		KeyPair pair = keyGen.generateKeyPair();
		PrivateKey priv = pair.getPrivate();
		PublicKey pub = pair.getPublic();
		
		System.out.println("Private Key");
		System.out.println(Base64.getEncoder().encodeToString(priv.getEncoded()));

		System.out.println("Public Key");
		System.out.println(Base64.getEncoder().encodeToString(pub.getEncoded()));
		
		String jwt = JWTHelper.createSignedJwt(NAME, future, priv);

		System.out.println("actual:");
		output(jwt);
		
		// verify the signature using the public key.
		String[] parts = jwt.split("\\.");
		verifySignature(pub, parts);
		
		Assert.assertEquals(EXPECTED_PART1, parts[0]);
		Assert.assertEquals(EXPECTED_PART2, parts[1]);
	}