@Override
  public InputStream getJreBinary(String jreFilename) {
    try {
      return new FileInputStream("jres/" + jreFilename);
    } catch (FileNotFoundException fileNotFoundException) {
      throw new NotFoundException(String.format("Unable to find JRE '%s'", jreFilename));
    }
  }
@Test
  void getJreBinary_shouldFail_whenFileNotFound() {
    assertThatThrownBy(() -> jresHandler.getJreBinary("jre1"))
      .isInstanceOf(NotFoundException.class)
      .hasMessage("Unable to find JRE 'jre1'");
  }