@VisibleForTesting
  static String getDefaultBaseImage(ProjectProperties projectProperties)
      throws IncompatibleBaseImageJavaVersionException {
    if (projectProperties.isWarProject()) {
      return "jetty";
    }
    int javaVersion = projectProperties.getMajorJavaVersion();
    if (javaVersion <= 8) {
      return "eclipse-temurin:8-jre";
    } else if (javaVersion <= 11) {
      return "eclipse-temurin:11-jre";
    } else if (javaVersion <= 17) {
      return "eclipse-temurin:17-jre";
    } else if (javaVersion <= 21) {
      return "eclipse-temurin:21-jre";
    }
    throw new IncompatibleBaseImageJavaVersionException(21, javaVersion);
  }
@Test
  public void testGetDefaultBaseImage_warProject()
      throws IncompatibleBaseImageJavaVersionException {
    when(projectProperties.isWarProject()).thenReturn(true);

    assertThat(PluginConfigurationProcessor.getDefaultBaseImage(projectProperties))
        .isEqualTo("jetty");
  }