### Question:
JiraIssueCreator implements IssueCreator { public void createIssue(Issue issue) throws Exception { if (issueParams == null) { issueParams = getIssueParameters(); } issueParams.put("summary", issue.getSummary()); issueParams.put("description", issue.getDescription()); rpcClient.execute("jira1.createIssue", new Object[]{getLoginToken(), issueParams}); } JiraIssueCreator(final String propFile);   JiraIssueCreator(XmlRpcClient rpcClient); static void main(String[] args); void createIssue(Issue issue); void logout(); String getLoginToken(); void login();  }### Answer:
@Test @SuppressWarnings("unchecked") public void testCreateIssue() throws Exception { issueCreator.setIssueParams(new HashMap()); mockXmlRpcClient.expects(once()).method("execute").with(eq("jira1.createIssue"), new Constraint() { public boolean eval(Object object) { Object[] arr = (Object[]) object; Map issueParams = (Map) arr[1]; return arr[0] instanceof String && issueParams.containsKey("summary") && issueParams.containsKey("description"); } public StringBuffer describeTo(StringBuffer stringBuffer) { return null; } }); issueCreator.createIssue(new Issue("", "")); }