### Question:
MetaUtil { public static DefaultRequest convertOldProtocolHeaderToRequest(RequestHeader header, DefaultRequest request) { request.setRemoteAppkey(header.getClientAppkey()); request.setClientIp(header.getClientIp()); TransportTraceInfo transportTraceInfo = new TransportTraceInfo(header.getClientAppkey()); transportTraceInfo.setSpanId(header.getSpanId()); transportTraceInfo.setTraceId(header.getTraceId()); transportTraceInfo.setDebug(header.isDebug()); request.setTransportTraceInfo(transportTraceInfo); return request; }  static Header convertRequestToHeader(DefaultRequest request); static DefaultRequest convertHeaderToRequest(Header header); static DefaultResponse convertHeaderToResponse(Header header); static Header convertResponseToHeader(DefaultResponse response); static RequestHeader convertRequestToOldProtocolHeader(DefaultRequest request); static DefaultRequest convertOldProtocolHeaderToRequest(RequestHeader header, DefaultRequest request); static void recordTraceInfoInDecode(byte[] msgBuff, Object message); static void recordTraceInfoInEncode(byte[] msgBuff, Object message); static void wrapException(Exception exception, DefaultResponse response);  }### Answer:
@Test public void testOldProtocolHeaderToRequest() { DefaultRequest request = new DefaultRequest(); request.setServiceInterface(Echo.Iface.class); MetaUtil.convertOldProtocolHeaderToRequest(requestHeader, request); Assert.assertEquals(request.getRemoteAppkey(), "com.sankuai.mock2"); Assert.assertEquals(request.getClientIp(), "127.0.0.2"); Assert.assertEquals(request.getTransportTraceInfo().getSpanId(), "0.1"); Assert.assertEquals(request.getServiceName(), null); }