public function testApiEnableVersion_EnablesVersion()
{
$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));
$this->assertFalse($versioner->checkVersion($req));
$versioner->enableVersion($version);
$this->assertTrue($versioner->checkVersion($req));
}