@Override
  public List<JreInfoRestResponse> getJresMetadata(@Nullable String os, @Nullable String arch) {
    Predicate<JreInfoRestResponse> osFilter = isBlank(os) ? jre -> true : (jre -> OS.from(jre.os()) == OS.from(os));
    Predicate<JreInfoRestResponse> archFilter = isBlank(arch) ? jre -> true : (jre -> Arch.from(jre.arch()) == Arch.from(arch));
    return metadata.values().stream()
      .filter(osFilter)
      .filter(archFilter)
      .toList();
  }
@Test
  void getJresMetadata_shouldFail_whenFilteredWithUnsupportedOsValue() {
    String anyUnsupportedOS = "not-supported";

    assertThatThrownBy(() -> jresHandler.getJresMetadata(anyUnsupportedOS, null))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessageStartingWith("Unsupported OS: '" + anyUnsupportedOS + "'");
  }