/**
     * @expectedException \RuntimeException
     */
    public function testScrapeRegistrationResponseWithInvalidDescription()
    {
        $registration = new GcmRegistration();
        $registration->setToken('abcdefghijklmnopqrstuvwxyz')->setTags(array('android', 'male', 'japanese'));
        $response = <<<RESPONSE
<entry xmlns="http://www.w3.org/2005/Atom">
    <content type="application/xml">
        <GcmTemplateRegistrationDescription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect">
            <ETag>3</ETag>
            <ExpirationTime>2014-09-01T15:57:46.778Z</ExpirationTime>
            <RegistrationId>2372532420827572008-85883004107185159-4</RegistrationId>
            <Tags>android, male, japanese</Tags>
            <GcmRegistrationId>abcdefghijklmnopqrstuvwxyz</GcmRegistrationId>
        </GcmTemplateRegistrationDescription>
    </content>
</entry>
RESPONSE;
        $registration->scrapeResponse($response);
    }
 /**
  * @expectedException \RuntimeException
  */
 public function testDeleteRegistrationWithEtag()
 {
     $registration = new GcmRegistration();
     $registration->setToken('abcdefghijklmnopqrstuvwxyz')->setRegistrationId('2372532420827572008-85883004107185159-4');
     $this->mock->deleteRegistration($registration);
 }