public function testApiGetVersion_ReturnsVersion_WhenVersionIsSetAndSupported()
{
$versioner = $this->createVersionManager();
$req = $this->getMock(HttpRequestInterface::class, [], [], '', false);
$version = $this->getMock(VersionInterface::class, [], [], '', false);
$version->expects($this->once())->method('isRequestSupported')->with($req)->will($this->returnValue(true));
$versioner->enableVersion($version);
$this->assertSame($version, $versioner->getVersion($req));
}