protected RootLoggerConfig buildRootLoggerConfig(Props props) {
    return newRootLoggerConfigBuilder()
      .setProcessId(processId)
      .setNodeNameField(getNodeNameWhenCluster(props))
      .setThreadIdFieldPattern(threadIdFieldPattern)
      .build();
  }
@Test
  public void buildRootLoggerConfig_shouldBuildConfig() {
    ServerProcessLogging serverProcessLogging = getServerProcessLoggingFakeImpl(WEB_SERVER, "threadIdFieldPattern");
    Props props = Mockito.mock(Props.class);
    RootLoggerConfig expected = newRootLoggerConfigBuilder()
      .setProcessId(WEB_SERVER)
      .setNodeNameField(null)
      .setThreadIdFieldPattern("threadIdFieldPattern")
      .build();

    RootLoggerConfig result = serverProcessLogging.buildRootLoggerConfig(props);

    assertThat(result).usingRecursiveComparison().isEqualTo(expected);
  }