public function resolveRecursivelyUnsetsCurrentRouteValueOnSuccessfulResolve()
{
$this->dynamicRoutPart->setName('foo.bar.baz');
$routeValues = ['foo' => ['bar' => ['baz' => 'should be removed', 'otherKey' => 'should stay']], 'differentString' => 'value2'];
$this->assertTrue($this->dynamicRoutPart->resolve($routeValues));
$this->assertEquals(['foo' => ['bar' => ['otherKey' => 'should stay']], 'differentString' => 'value2'], $routeValues);
}