/**
  * Handle the message to cache content.
  * @param \Brickoo\Component\Messaging\Message $message
  * @return void
  */
 public function handleStoreMessage(Message $message)
 {
     if ($message instanceof StoreMessage) {
         $this->storageProxy->set($message->getIdentifier(), $message->getContent(), $message->getLifetime());
     }
 }
 /**
  * @covers Brickoo\Component\Storage\StorageProxy::set
  * @expectedException \InvalidArgumentException
  */
 public function testSetLifetimeThrowsArgumentException()
 {
     $storageProxy = new StorageProxy($this->getAdapterPoolIterator());
     $storageProxy->set("some_valid_identifier", "", "wrongType");
 }