@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_projectHigherThanJava21() {
    when(projectProperties.getMajorJavaVersion()).thenReturn(22);

    IncompatibleBaseImageJavaVersionException exception =
        assertThrows(
            IncompatibleBaseImageJavaVersionException.class,
            () -> PluginConfigurationProcessor.getDefaultBaseImage(projectProperties));

    assertThat(exception.getBaseImageMajorJavaVersion()).isEqualTo(21);
    assertThat(exception.getProjectMajorJavaVersion()).isEqualTo(22);
  }