@Test
public void testShouldSendCCMail() throws AddressException, MessagingException{

	//Setup
	OLATPrincipal helene = ObjectMother.createHeleneMeyerPrincipial();
	OLATPrincipal mia = ObjectMother.createMiaBrennerPrincipal();
	OLATPrincipal nicolas = ObjectMother.createNicolas33Principal();
	
	String cc = ObjectMother.getPrivateEmailsAsCSVFor(helene, mia, nicolas);
	InternetAddress[] privateEmailAsInternetAddressesFor = ObjectMother.getPrivateEmailAsInternetAddressesFor( nicolas, mia,helene);
	
	//Exercise
	peterBichselEmailer.sendEmailCC(cc, ObjectMother.AN_EXAMPLE_SUBJECT, ObjectMother.HELLOY_KITTY_THIS_IS_AN_EXAMPLE_BODY, null);
	//Verify
	assertEquals("peter bichsel is the email sender with its private mail.", ObjectMother.PETER_BICHSEL_INSTITUTIONAL_EMAIL, peterBichselEmailer.mailfrom);
	InternetAddress[] nullAddresses = null;
	File[] nullFiles = null;
	verify(webappAndMailhelperMockPrincipalMailer, times(1)).createMessage(any(InternetAddress.class), aryEq(nullAddresses), aryEq(privateEmailAsInternetAddressesFor), aryEq(nullAddresses), eq(ObjectMother.HELLOY_KITTY_THIS_IS_AN_EXAMPLE_BODY + ObjectMother.MAIL_TEMPLATE_FOOTER), eq(ObjectMother.AN_EXAMPLE_SUBJECT), aryEq(nullFiles), any(MailerResult.class));
}