/**
  * Test setting extensions.
  */
 public function testSetExtensions()
 {
     $trackPoint = new TrackPoint(null, null, new DateTime());
     $em1 = $this->getExtensionMock('e1');
     $em2 = $this->getExtensionMock('e2');
     $em3 = $this->getExtensionMock('e3');
     $extensions = array($em1, $em2, $em3);
     $trackPoint->setExtensions($extensions);
     $this->assertEquals($extensions, array_values($trackPoint->getExtensions()));
     $this->assertCount(3, $trackPoint->getExtensions());
     $this->assertSame($em1, $trackPoint->getExtension('e1'));
     $this->assertSame($em2, $trackPoint->getExtension('e2'));
     $this->assertSame($em3, $trackPoint->getExtension('e3'));
 }