### Question:
DefaultMailSenderConfiguration implements MailSenderConfiguration { @Override public List<String> getBCCAddresses() { List<String> bccAddresses = new ArrayList<>(); String bccAsString = this.currentWikiMailConfigSource.getProperty(BCC_PROPERTY, String.class); if (bccAsString == null && !isMainWiki()) { bccAsString = this.mainWikiMailConfigSource.getProperty(BCC_PROPERTY, String.class); } if (bccAsString == null) { bccAsString = this.xwikiPropertiesSource.getProperty(PREFIX + BCC_PROPERTY, String.class); } if (bccAsString != null) { for (String address : StringUtils.split(bccAsString, ',')) { bccAddresses.add(StringUtils.trim(address)); } } return bccAddresses; }  @Override String getHost(); @Override int getPort(); @Override String getUsername(); @Override String getPassword(); @Override List<String> getBCCAddresses(); @Override String getFromAddress(); @Override Properties getAdditionalProperties(); @Override Properties getAllProperties(); @Override boolean usesAuthentication(); @Override String getScriptServicePermissionCheckerHint(); @Override long getSendWaitTime(); @Override int getPrepareQueueCapacity(); @Override int getSendQueueCapacity(); static final String JAVAMAIL_TRANSPORT_PROTOCOL; static final String JAVAMAIL_SMTP_HOST; static final String JAVAMAIL_SMTP_PORT; static final String JAVAMAIL_SMTP_USERNAME; static final String JAVAMAIL_SMTP_AUTH; }### Answer:
@Test public void getBCCAddressesFromMailConfig() { when(this.mailConfigDocumentSource.getProperty("bcc", String.class)).thenReturn("john@doe.com, mary@doe.com"); assertThat(Arrays.asList("john@doe.com", "mary@doe.com"), containsInAnyOrder(this.configuration.getBCCAddresses().toArray())); }