### Question:
JiraHttpClient extends BentenHttpClient { public Issue getIssueDetails(String issueKey,String expandedFields){ Issue issue; try { HttpGet httpGet = new HttpGet(JiraHttpHelper.issueDetailsUri(issueKey, expandedFields)); HttpResponse httpResponse = request(httpGet); if(httpResponse.getStatusLine().getStatusCode()!=200){ handleJiraException(httpResponse); } String json = EntityUtils.toString(httpResponse.getEntity()); JSONObject issuesJson = JiraConverter.objectMapper.readValue(json,JSONObject.class); issue =JiraConverter.convertJsonObjectToIssue(issuesJson); }catch (Exception ex) { throw new RuntimeException(ex); } return issue; }  List<Issue> searchIssues(String jql,String expandedFields,int maxResults); Issue getIssueDetails(String issueKey,String expandedFields); void updateIssue(String issueKey,Map<String,Object> fields); void logWork(String issueKey,JSONObject jsonObject); void transitionIssue(String issueKey,JSONObject jsonObject); List<Transition> getPossibleTransitions(String issueKey); void comment(String issueKey,JSONObject jsonObject); JSONObject getCreateMetaData(String projectKey, String issueType); String createIssue(Map<String,Object> fields);  }### Answer:
@Test public void testGetIssueDetails(){ String issueKey = TestHelper.createStory(bentenJiraClient); TestHelper.updateAssigneeAndReporter(bentenJiraClient,issueKey); String expandedFields = Field.ASSIGNEE .concat(","+Field.STATUS) .concat(","+Field.PRIORITY) .concat(","+Field.ISSUE_TYPE) .concat(","+Field.PRIORITY) .concat(","+Field.SUMMARY) .concat(","+Field.DUE_DATE) .concat(","+Field.COMMENT) .concat(","+Field.DUE_DATE) .concat(","+Field.FIX_VERSIONS) .concat(","+Field.CHANGE_LOG) .concat(","+Field.CREATED_DATE) .concat(","+Field.UPDATED_DATE) .concat(","+Field.RESOLUTION_DATE) .concat(","+Field.WATCHES) .concat(","+Field.VOTES) .concat(","+Field.ATTACHMENT) .concat(","+Field.COMPONENTS) .concat(","+Field.DESCRIPTION) .concat(","+Field.ISSUE_LINKS) .concat(","+Field.LABELS) .concat(","+Field.PROJECT) .concat(","+Field.REPORTER) .concat(","+Field.RESOLUTION) .concat(","+Field.TIME_TRACKING) .concat(","+Field.VERSIONS) .concat(","+Field.WORKLOG) .concat(","+Field.TIME_ESTIMATE) .concat(","+Field.TIME_SPENT) .concat(","+Field.SECURITY); Issue issue = jiraHttpClient.getIssueDetails(issueKey,expandedFields); Assert.assertEquals(TestHelper.assigneeName,issue.getAssignee().getName().toString()); Assert.assertEquals(issueKey,issue.getKey()); }