CONN-821:Add unit Tests to Mail package of DirectCore