### Question:
MDCBuilder { public static void buildMdcContext() { buildMdcContext(null); } private  MDCBuilder(); static void buildMdcContext(); static void addMdcField(String field, String value); static void removeMdcField(String field); static void addFlowId(String flowId); static void addRequestId(String requestId); static void addRequestId(Optional<String> requestId); static void addEnvCrn(String env); static void addResourceCrn(String crn); static void addAccountId(String account); static void addTraceId(String traceId); static void addSpanId(String spanId); static void addOperationId(String operationId); static void removeOperationId(); static void buildMdcContext(Object object); static void buildMdc(MdcContext mdcContext); static void buildMdcContextFromCrn(Crn crn); static void buildMdcContextFromMap(Map<String, String> map); static void buildMdcContextFromMapForControllerCalls(Map<String, String> map); static Map<String, String> getMdcContextMap(); static String getFieldValue(Object o, String field); static String getFieldValues(Object o, String... fields); static void cleanupMdc(); static final String MDC_CONTEXT_ID; }### Answer:
@Test void testBuildWithViewClass() { ClusterView clusterView = new ClusterView("crn"); MDCBuilder.buildMdcContext(clusterView); String resourceCrn = MDC.get(LoggerContextKey.RESOURCE_CRN.toString()); String resourceType = MDC.get(LoggerContextKey.RESOURCE_TYPE.toString()); assertEquals("crn", resourceCrn); assertEquals("CLUSTER", resourceType); }