public function parseSetsDefaultValueOfRoutePartsRecursively()
{
$this->route->setUriPattern('{foo.bar}');
$this->route->setRoutePartsConfiguration(['foo.bar' => ['handler' => 'SomeRoutePartHandler']]);
$this->route->setDefaults(['foo' => ['bar' => 'SomeDefaultValue']]);
$mockRoutePartHandler = $this->createMock(Routing\DynamicRoutePartInterface::class);
$mockRoutePartHandler->expects($this->once())->method('setDefaultValue')->with('SomeDefaultValue');
$this->mockObjectManager->expects($this->once())->method('get')->with('SomeRoutePartHandler')->will($this->returnValue($mockRoutePartHandler));
$this->route->parse();
}