/** Holds only for JIRA > 5.x.x */
 public void testExtractedErrorMessage() throws Exception {
   myRepository.setSearchQuery("foo < bar");
   try {
     myRepository.getIssues("", 50, 0);
     fail();
   } catch (Exception e) {
     assertEquals(
         "Request failed. Reason: \"Field 'foo' does not exist or you do not have permission to view it.\"",
         e.getMessage());
   }
 }
 public void testJqlQuery() throws Exception {
   myRepository.setSearchQuery(
       "assignee = currentUser() AND (summary ~ 'foo' or resolution = Fixed)");
   assertEquals(2, myRepository.getIssues("", 50, 0).length);
 }