### Question:
ScriptMimeMessage extends ExtendedMimeMessage { @Override public void addRecipients(Message.RecipientType type, Address[] addresses) { try { super.addRecipients(type, addresses); } catch (Exception e) { setError(e); } } ScriptMimeMessage(MimeMessage sourceMessage, Execution execution, ComponentManager componentManager);   ScriptMimeMessage(Execution execution, ComponentManager componentManager); void addPart(BodyPart bodyPart); BodyPart addPart(String mimeType, Object content); BodyPart addPart(String mimeType, Object content, Map<String, Object> parameters); @Override void setSubject(String subject); @Override void setFrom(Address address); @Override void addRecipients(Message.RecipientType type, Address[] addresses); @Override void addRecipient(Message.RecipientType type, Address address); @Override void addHeader(String name, String value);  }### Answer:
@Test public void addRecipients() throws Exception { Address[] address = InternetAddress.parse("john@doe.com,jane@doe.com,jannie@doe.com"); this.scriptMessage.addRecipients(Message.RecipientType.TO, address); assertArrayEquals(address, this.scriptMessage.getRecipients(Message.RecipientType.TO)); }