### Question:
JiraIssueCreator implements IssueCreator { void initializeXmlRpcClient(XmlRpcClient rpcClient, XmlRpcClientConfigImpl configImpl) { try { URL jiraRpcUrl = new URL(properties.getProperty("jira.url") + properties.getProperty("jira.rpc.path")); configImpl.setServerURL(jiraRpcUrl); this.rpcClient = rpcClient; rpcClient.setConfig(configImpl); } catch (Exception e) { throw new RuntimeException("Error connecting to CreateIssue", e); } } 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 testInitializeXmlRpcClient() throws Exception { Mock mockConfigImpl = mock(XmlRpcClientConfigImpl.class); mockXmlRpcClient.reset(); mockXmlRpcClient.expects(once()).method("setConfig").with(isA(XmlRpcClientConfigImpl.class)); mockConfigImpl.expects(once()).method("setServerURL").with(isA(URL.class)); issueCreator.initializeXmlRpcClient((XmlRpcClient) mockXmlRpcClient.proxy(), (XmlRpcClientConfigImpl) mockConfigImpl.proxy()); }