gson = new Gson();
}
@Test
public void unmarshalIssues() {
GitHubIssues issues = gson.fromJson(
getResource("resources/issues.json"), GitHubIssues.class);
assertTrue(issues != null);
assertTrue(issues.getIssues() != null);
assertEquals(10,issues.getIssues().length);
GitHubIssue issue = issues.getIssues()[9];
//{"number":10,"votes":0,"created_at":"2010/02/04 21:03:54 -0800","body":"test description 2 ","title":"test issue for testing mylyn github connector2",
// "updated_at":"2010/02/04 21:09:37 -0800","closed_at":null,"user":"dgreen99","labels":[],"state":"open"}]}
assertEquals("10",issue.getNumber());
assertEquals("2010/02/04 21:03:54 -0800",issue.getCreated_at());
assertEquals("test description 2 ",issue.getBody());