@Override
  public EngineInfoRestResponse getScannerEngineMetadata() {
    ScannerEngineMetadata metadata = scannerEngineHandler.getScannerEngineMetadata();
    return new EngineInfoRestResponse(metadata.filename(), metadata.checksum());
  }
@Test
  void getEngine_shouldReturnScannerMetadataAsJson() throws Exception {
    String anyName = "anyName";
    String anyChecksum = "anyChecksum";
    when(scannerEngineHandler.getScannerEngineMetadata()).thenReturn(new ScannerEngineMetadata(anyName, anyChecksum));
    String expectedJson = format("{\"filename\":\"%s\",\"sha256\":\"%s\"}", anyName, anyChecksum);

    mockMvc.perform(get(SCANNER_ENGINE_ENDPOINT))
      .andExpectAll(
        status().isOk(),
        content().json(expectedJson));
  }