@Test
public void testParseIssueJira5x0Representation() throws JSONException {
final Issue issue = parseIssue("/json/issue/valid-5.0.json");
assertEquals(3, Iterables.size(issue.getComments()));
final BasicPriority priority = issue.getPriority();
assertNotNull(priority);
assertEquals("Major", priority.getName());
assertEquals("my description", issue.getDescription());
assertEquals("TST", issue.getProject().getKey());
assertNotNull(issue.getDueDate());
assertEquals(toDateTimeFromIsoDate("2010-07-05"), issue.getDueDate());
assertEquals(4, Iterables.size(issue.getAttachments()));