### Question:
EnterpriseWeChatUtils { public static String makeTeamSendMsg(String toParty, String agentId, String msg) { return ENTERPRISE_WE_CHAT_TEAM_SEND_MSG.replaceAll("\\{toParty}", toParty) .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 testMakeTeamSendMsg1() { String sendMsg = EnterpriseWeChatUtils.makeTeamSendMsg(toParty, enterpriseWechatSecret, msg); Assert.assertTrue(sendMsg.contains(toParty)); Assert.assertTrue(sendMsg.contains(enterpriseWechatSecret)); Assert.assertTrue(sendMsg.contains(msg)); }
@Test public void testMakeTeamSendMsg2() { List<String> parties = new ArrayList<>(); parties.add(toParty); parties.add("test1"); String sendMsg = EnterpriseWeChatUtils.makeTeamSendMsg(parties, enterpriseWechatSecret, msg); Assert.assertTrue(sendMsg.contains(toParty)); Assert.assertTrue(sendMsg.contains(enterpriseWechatSecret)); Assert.assertTrue(sendMsg.contains(msg)); }