private function assertEmailForVersion($version, $expectedMessage)
{
$this->setLatestVersion($version);
$subject = 'CoreUpdater_NotificationSubjectAvailableCoreUpdate';
$mock = $this->getCommunicationMock(array('sendEmailNotification'));
$mock->expects($this->once())->method('sendEmailNotification')->with($this->equalTo($subject), $this->equalTo($expectedMessage));
$mock->sendNotificationIfUpdateAvailable();
}