@Test
public void testToJson() {

	try {
		Asset asset = new Asset();
		asset.fromJson(this.json);
		String gen = asset.toJson();
		Asset reparsed = new Asset();
		reparsed.fromJson(gen);
		//assertEquals(asset.getId(), reparsed.getId());
		assertEquals(asset.getName(), reparsed.getName());
		assertTrue(reparsed.getTags().contains("Featured"));
		assertTrue(reparsed.getPhotos().contains(new URI("http://inventory.lifecyclebuildingcenter.org/img/tji_joists_md.jpg")));
		assertTrue(reparsed.getAttributes().containsKey("Quantity"));
		assertEquals("Excellent", reparsed.getAttributes().get("Condition"));
	} catch (IOException e) {
		fail(e.toString());
	} catch (URISyntaxException e) {
		fail(e.toString());
	}
}