/**
  * @test
  * @expectedException \Neos\Flow\Mvc\Exception\InvalidRoutePartValueException
  */
 public function resolvesThrowsExceptionIfRoutePartDefaultValueIsNoString()
 {
     $mockRoutePart = $this->createMock(Routing\RoutePartInterface::class);
     $mockRoutePart->expects($this->any())->method('resolve')->will($this->returnValue(true));
     $mockRoutePart->expects($this->any())->method('hasValue')->will($this->returnValue(false));
     $mockRoutePart->expects($this->once())->method('getDefaultValue')->will($this->returnValue(['not a' => 'string']));
     $this->route->setUriPattern('foo');
     $this->route->_set('isParsed', true);
     $this->route->_set('routeParts', [$mockRoutePart]);
     $this->route->resolves([]);
 }