### Question:
EnterpriseWeChatUtils { public static String makeUserSendMsg(String toUser, String agentId, String msg) { return ENTERPRISE_WE_CHAT_USER_SEND_MSG.replaceAll("\\{toUser}", toUser) .replaceAll(agentIdRegExp, agentId) .replaceAll(msgRegExp, msg); }  static boolean isEnable(); static String getToken(); static String makeTeamSendMsg(String toParty, String agentId, String msg); static String makeTeamSendMsg(Collection<String> toParty, String agentId, String msg); static String makeUserSendMsg(String toUser, String agentId, String msg); static String makeUserSendMsg(Collection<String> toUser, String agentId, String msg); static String sendEnterpriseWeChat(String charset, String data, String token); static String markdownTable(String title, String content); static String markdownText(String title, String content); static String markdownByAlert(AlertData alert); static final Logger logger; static final String ENTERPRISE_WE_CHAT_AGENT_ID; static final String ENTERPRISE_WE_CHAT_USERS; }### Answer:
@Test public void tesMakeUserSendMsg1() { String sendMsg = EnterpriseWeChatUtils.makeUserSendMsg(enterpriseWechatUsers, enterpriseWechatAgentId, msg); Assert.assertTrue(sendMsg.contains(enterpriseWechatUsers)); Assert.assertTrue(sendMsg.contains(enterpriseWechatAgentId)); Assert.assertTrue(sendMsg.contains(msg)); }
@Test public void tesMakeUserSendMsg2() { List<String> users = new ArrayList<>(); users.add("user1"); users.add("user2"); String sendMsg = EnterpriseWeChatUtils.makeUserSendMsg(users, enterpriseWechatAgentId, msg); Assert.assertTrue(sendMsg.contains(users.get(0))); Assert.assertTrue(sendMsg.contains(users.get(1))); Assert.assertTrue(sendMsg.contains(enterpriseWechatAgentId)); Assert.assertTrue(sendMsg.contains(msg)); }