public function testApiBlockAddress_BlocksAddress()
{
$ip = '50.50.50.50';
$server = $this->createServer();
$component = $this->createComponent();
$firewall = $this->createFirewall($server, $component);
$this->assertFalse(array_key_exists($ip, $this->getProtectedProperty($firewall, 'blacklist')));
$firewall->blockAddress($ip);
$this->assertTrue(array_key_exists($ip, $this->getProtectedProperty($firewall, 'blacklist')));
}