@Test
public void testToJson() {

	try {
		User user = new User();
		user.fromJson(this.json);
		String gen = user.toJson();
		User reparsed = new User();
		reparsed.fromJson(gen);
		assertEquals(user.getUsername(), reparsed.getUsername());
		assertTrue(reparsed.getAttributes().containsKey("email"));
		assertEquals("12/29/1981", reparsed.getAttributes().get("dob"));
	} catch (IOException e) {
		fail(e.toString());
	} catch (URISyntaxException e) {
		fail(e.toString());
	} catch (Exception e) {
		fail(e.toString());
	}
}