public function testApiGetLocalEndpoint_ReturnsEndpoint()
{
$server = stream_socket_server($this->tempSocketRemoteAddress());
$socket = $this->createSocketMock($this->tempSocketRemoteAddress());
$this->assertRegExp('#^tcp://(([0-9]*?)\\.){3}([0-9]*?):([0-9]*?)$#si', $socket->getLocalEndpoint());
}