@Test
public void testParse() throws JSONException, URISyntaxException {

	VersionJsonParser parser = new VersionJsonParser();
	final Version version = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/version/valid.json"));
	
	assertEquals(new URI("http://localhost:8090/jira/rest/api/latest/version/10000"), version.getSelf());
	assertEquals("1.1", version.getName());
	assertEquals("Some version", version.getDescription());
	Assert.assertFalse(version.isReleased());
	Assert.assertTrue(version.isArchived());
	Assert.assertThat(version.getReleaseDate(), DateTimeMatcher.isEqual(
			new DateTime(2010, 8, 25, 0, 0, 0, 0, DateTimeZone.forOffsetHours(2))));
}