@Test
public void multiIssueTest() throws Exception {
MockEndpoint mockResultEndpoint = getMockEndpoint("mock:result");
MockJiraRestClient jiraRestClient = (MockJiraRestClient) factory.getClient();
MockSearchRestClient searchRestClient = (MockSearchRestClient) jiraRestClient.getSearchClient();
BasicIssue issue1 = searchRestClient.addIssue();
Comment comment1 = searchRestClient.addCommentToIssue(issue1, "Comment added at " + new Date());
BasicIssue issue2 = searchRestClient.addIssue();
Comment comment2 = searchRestClient.addCommentToIssue(issue2, "Comment added at " + new Date());
mockResultEndpoint.expectedBodiesReceivedInAnyOrder(comment1, comment2);
mockResultEndpoint.assertIsSatisfied();
}