/**
  * check if default account pref is set
  */
 public function testDefaultAccountPreference()
 {
     $this->assertEquals($this->_account->getId(), Tinebase_Core::getPreference('Expressomail')->{Expressomail_Preference::DEFAULTACCOUNT}, 'current account is not the default account');
     $userAccount = clone $this->_account;
     unset($userAccount->id);
     $userAccount->type = Expressomail_Model_Account::TYPE_USER;
     $userAccount = $this->_controller->create($userAccount);
     // deleting original account and check if user account is new default account
     $this->_controller->delete($this->_account->getId());
     $this->assertEquals($userAccount->getId(), Tinebase_Core::getPreference('Expressomail')->{Expressomail_Preference::DEFAULTACCOUNT}, 'other account is not default account');
 }