@VisibleForTesting
  static AbsoluteUnixPath getAppRootChecked(
      RawConfiguration rawConfiguration, ProjectProperties projectProperties)
      throws InvalidAppRootException {
    String appRoot = rawConfiguration.getAppRoot();
    if (appRoot.isEmpty()) {
      appRoot =
          projectProperties.isWarProject()
              ? DEFAULT_JETTY_APP_ROOT
              : JavaContainerBuilder.DEFAULT_APP_ROOT;
    }
    try {
      return AbsoluteUnixPath.get(appRoot);
    } catch (IllegalArgumentException ex) {
      throw new InvalidAppRootException(appRoot, appRoot, ex);
    }
  }
@Test
  public void testGetAppRootChecked_errorOnWindowsPathWithDriveLetter() {
    when(rawConfiguration.getAppRoot()).thenReturn("C:\\windows\\path");

    Exception exception =
        assertThrows(
            InvalidAppRootException.class,
            () ->
                PluginConfigurationProcessor.getAppRootChecked(
                    rawConfiguration, projectProperties));
    assertThat(exception).hasMessageThat().isEqualTo("C:\\windows\\path");
  }