public function registeredRoutePartHandlerIsInvokedWhenCallingMatch()
{
$this->route->setUriPattern('{key1}/{key2}');
$this->route->setRoutePartsConfiguration(['key1' => ['handler' => MockRoutePartHandler::class]]);
$mockRoutePartHandler = new MockRoutePartHandler();
$this->mockObjectManager->expects($this->once())->method('get')->with(MockRoutePartHandler::class)->will($this->returnValue($mockRoutePartHandler));
$this->routeMatchesPath('foo/bar');
$this->assertEquals(['key1' => '_match_invoked_', 'key2' => 'bar'], $this->route->getMatchResults());
}