    @Test(groups = "unit")
    public void setRequestHeader() throws Exception {

        RequestHeader requestHeader = new RequestHeader();
        requestHeader.setTraceId(0xDEAD);
        requestHeader.setSpanId(0xDEAF);
        requestHeader.setSampled(true);

        ThriftLogContext.setRequestHeader(requestHeader);

        assertEquals(MDC.get(ThriftLogContext.TRACE_ID), "dead");
        assertEquals(MDC.get(ThriftLogContext.SPAN_ID), "deaf");
        assertEquals(MDC.get(ThriftLogContext.PARENT_SPAN_ID), null);
        assertEquals(MDC.get(ThriftLogContext.SAMPLED), "true");
    }