@Test
void logSiteHeaders() {

    var headers = new HeaderMap();
    headers.put(Headers.REFERER, "http://localhost");
    headers.put(Headers.USER_AGENT, "Mozilla/5.0");
    var actionLog = new ActionLog(null, null);
    parser.logSiteHeaders(headers, actionLog);
    assertThat(actionLog.context).doesNotContainKeys("user_agent", "referer");
    parser.logSiteHeaders = true;
    parser.logSiteHeaders(headers, actionLog);
    assertThat(actionLog.context).containsKeys("user_agent", "referer");
}