@Test public void testParseProject1() throws ParseException, JSONException { final String projectString = "{\"project\":{\"created_on\":\"2012/05/11 06:53:21 -0700\",\"updated_on\":\"2012/05/11 06:53:20 -0700\",\"homepage\":\"\",\"trackers\":[{\"name\":\"Bug\",\"id\":1},{\"name\":\"Feature\",\"id\":2},{\"name\":\"Support\",\"id\":3}],\"identifier\":\"test1336744548920\",\"name\":\"test project\",\"id\":6143}}"; final Project project = RedmineJSONParser.PROJECT_PARSER.parse( RedmineJSONParser.getResponseSingleObject(projectString, "project")); final Project template = new Project(); template.setId(Integer.valueOf(6143)); template.setIdentifier("test1336744548920"); template.setName("test project"); template.setHomepage(""); template.setCreatedOn( new SimpleDateFormat("dd.MM.yyyy HH:mm:ss Z").parse("11.05.2012 06:53:21 -0700")); template.setUpdatedOn( new SimpleDateFormat("dd.MM.yyyy HH:mm:ss Z").parse("11.05.2012 06:53:20 -0700")); template.setTrackers( Arrays.asList(new Tracker(1, "Bug"), new Tracker(2, "Feature"), new Tracker(3, "Support"))); template.setDescription(""); Assert.assertEquals(template, project); }