def METHOD_NAME(self):
    url = "http://%s:%s/invalid" % (
        self.mock_http_server_thread.host,
        self.mock_http_server_thread.port,
    )
    monitor_config = {
        "module": "apache_monitor",
        "status_url": url,
    }
    mock_logger = mock.Mock()
    monitor = ApacheMonitor(monitor_config, mock_logger)
    monitor.gather_sample()
    self.assertEqual(mock_logger.emit_value.call_count, 0)
    self.assertEqual(mock_logger.error.call_count, 2)
    self.assertTrue(
        "The URL used to request the status page appears to be incorrect"
        in mock_logger.error.call_args_list[0][0][0]
    )
    self.assertTrue("No data returned" in mock_logger.error.call_args_list[1][0][0])