### Question:
MandatoryParameterHelper { public static MandatoryParameter toSleuth(TraceContext traceContext, MandatoryParameter mandatoryParameter) { SleuthHelper.putExtraField(traceContext, MandatoryParameterSleuth.STORE_ID, mandatoryParameter.getStoreId()); SleuthHelper.putExtraField(traceContext, MandatoryParameterSleuth.CLIENT_ID, mandatoryParameter.getClientId()); SleuthHelper.putExtraField(traceContext, MandatoryParameterSleuth.CHANNEL_ID, mandatoryParameter.getChannelId()); SleuthHelper.putExtraField(traceContext, MandatoryParameterSleuth.REQUEST_ID, mandatoryParameter.getRequestId()); SleuthHelper.putExtraField(traceContext, MandatoryParameterSleuth.USERNAME, mandatoryParameter.getUsername()); return mandatoryParameter; }  static MandatoryParameter toSleuth(TraceContext traceContext, MandatoryParameter mandatoryParameter); static MandatoryParameter fromSleuth(TraceContext traceContext);  }### Answer:
@Test void testToSleuth() { MandatoryParameterHelper.toSleuth(span.context(), MANDATORY_PARAMETER); MandatoryParameter mandatoryParameter = MandatoryParameterHelper.fromSleuth(span.context()); assertEquals(MANDATORY_PARAMETER, mandatoryParameter); }