### Question:
ThriftLogContext { public static RequestHeader getRequestHeader() { return threadLocal.get().getHeader(); } private  ThriftLogContext(); static void newExecution(); static long getTraceId(); static void setTraceId(long traceId); static long getSpanId(); static void setSpanId(long spanId); static OptionalLong getParentSpanId(); static void setParentSpanId(OptionalLong parentSpanId); static Optional<Boolean> isSampled(); static void setSampled(Optional<Boolean> sampled); static RequestHeader getRequestHeader(); static void setRequestHeader(RequestHeader header); static void setParentRequestHeader(RequestHeader header); static String generateId(); static Optional<BooleanSupplier> getSampledSupplier(); static void setSampledSupplier(Optional<BooleanSupplier> sampledSupplier); static void setDefaultReporter(ThriftRequestReporter defaultRequestReporter); static ThriftRequestReporter getDefaultClientReporter(); static void setDefaultClientReporter(ThriftRequestReporter defaultClientReporter); static ThriftRequestReporter getDefaultServerReporter(); static void setDefaultServerReporter(ThriftRequestReporter defaultServerReporter); static String getClientAddress(); static void setClientAddress(String clientAddress); static final String TRACE_ID; static final String SPAN_ID; static final String PARENT_SPAN_ID; static final String SAMPLED; static final String CLIENT_ADDRESS; }### Answer:
@Test(groups = "unit") public void getRequestHeader() throws Exception { MDC.put(ThriftLogContext.TRACE_ID, "DEAD"); MDC.put(ThriftLogContext.SPAN_ID, "DEAE"); MDC.put(ThriftLogContext.PARENT_SPAN_ID, "DEAF"); MDC.put(ThriftLogContext.SAMPLED, "TRUE"); RequestHeader requestHeader = ThriftLogContext.getRequestHeader(); assertEquals(requestHeader.getTraceId(), 0xDEAD); assertEquals(requestHeader.getSpanId(), 0xDEAE); assertEquals(requestHeader.getParentSpanId(), 0xDEAF); assertEquals(requestHeader.isSampled(), true); }