@Override
  public JreInfoRestResponse getJreMetadata(String id) {
    return jresHandler.getJreMetadata(id);
  }
@Test
  void getJre_shouldReturnMetadataAsJson() throws Exception {
    String anyId = "anyId";
    JreInfoRestResponse jreInfoRestResponse = new JreInfoRestResponse(anyId, "filename", "sha256", "javaPath", "os", "arch");
    when(jresHandler.getJreMetadata(anyId)).thenReturn(jreInfoRestResponse);
    String expectedJson = "{\"id\":\"" + anyId + "\",\"filename\":\"filename\",\"sha256\":\"sha256\",\"javaPath\":\"javaPath\",\"os\":\"os\",\"arch\":\"arch\"}";

    mockMvc.perform(get(JRE_ENDPOINT + "/" + anyId))
      .andExpect(status().isOk())
      .andExpect(content().json(expectedJson));
  }