public function testGetPathWithBasePathTrailingSlash()
{
$this->request->expects($this->once())->method('getRequestUri')->will($this->returnValue('/foo/bar'));
$extractorFactory = new ExtractorFactory('/foo/');
$extractor = $extractorFactory->createPathExtractor();
$this->assertSame('/bar', $extractor($this->request));
}