def METHOD_NAME(self):
    mock_logger = mock.MagicMock()
    config_data = {
        "url": "http://fooUrl",
        "request_method": "POST",
        "request_data": "{fakejsonthatisnotlegit}",
        "request_headers": self.legit_headers,
        "module": self.module,
    }
    config = MonitorConfig(content=config_data)
    url_monitor = UrlMonitor(monitor_config=config, logger=mock_logger)
    actual_request = url_monitor.build_request()
    self.assertEqual(actual_request.get_method(), "POST")
    if six.PY3:
        self.assertEqual(actual_request.data, b"{fakejsonthatisnotlegit}")
    else:
        self.assertEqual(actual_request.data, "{fakejsonthatisnotlegit}")
    self.assertEqual(
        sorted(actual_request.header_items()),
        sorted(
            [("Header_foo", "foo"), ("Header_bar", "bar")] + EXPECTED_BASE_HEADERS
        ),
    )