/**
  * @expectedException Expressly\Exception\InvalidURIException
  */
 public function testBuildingEntityWithPlaceholderAndInvalidData()
 {
     $entity = new ExternalRoute(new Response(), new Request(), new Curl());
     $entity->setMethod('GET')->setHost('https://dev.expresslyapp.com/api/v2')->setURI('/migration/<uuid>')->setRules(array('uuid' => new UuidValidator('uuid not valid')))->setParameters(array('uuid' => 'not_a_uuid'));
     // raises InvalidURIException
     $entity->getURL();
 }