public function testApiHandleConnect_PropagatesConnect_WhenIPIsValid()
{
$host = 'host';
$conn = $this->getMock(NetworkConnection::class, [], [], '', false);
$conn->expects($this->once())->method('getHost')->will($this->returnValue($host));
$server = $this->createServer();
$component = $this->createComponent();
$component->expects($this->once())->method('handleConnect')->with($conn);
$firewall = $this->createFirewall($server, $component, ['isAddressBlocked']);
$firewall->expects($this->once())->method('isAddressBlocked')->with($host)->will($this->returnValue(false));
$firewall->handleConnect($conn);
}