@Override
  public JreInfoRestResponse getJreMetadata(String id) {
    return Optional.ofNullable(metadata.get(id))
      .orElseThrow(() -> new NotFoundException("JRE not found for id: " + id));
  }
@Test
  void getJreMetadata_shouldFail_whenJreNotFound() {
    assertThatThrownBy(() -> jresHandler.getJreMetadata("4"))
      .isInstanceOf(NotFoundException.class)
      .hasMessage("JRE not found for id: 4");
  }