### Question:
JiraIssueCreator implements IssueCreator { public void logout() throws XmlRpcException { rpcClient.execute("jira1.logout", new Object[]{getLoginToken()}); } JiraIssueCreator(final String propFile);   JiraIssueCreator(XmlRpcClient rpcClient); static void main(String[] args); void createIssue(Issue issue); void logout(); String getLoginToken(); void login();  }### Answer:
@Test public void testLogout() throws Exception { mockXmlRpcClient.expects(once()).method("execute").with(eq("jira1.logout"), ANYTHING); issueCreator.logout(); }