public function testApiHandleError_DoesNothing_WhenIPIsNotValid()
{
$host = 'host';
$ex = new Exception();
$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->never())->method('handleError');
$firewall = $this->createFirewall($server, $component, ['isAddressBlocked']);
$firewall->expects($this->once())->method('isAddressBlocked')->with($host)->will($this->returnValue(true));
$firewall->handleError($conn, $ex);
}