Como testar a API de download usando karatê

Eu tenho uma API para download de arquivo (TXT,.doc, *. csv) usando o framework Spring em java.i queria fazer testes de aceitação usando karatê. como posso fazer isso.

aqui está o meu código

@RequestMapping(path = "/download", method = RequestMethod.GET)
public ResponseEntity<Resource> download(String param) throws 
IOException {
InputStreamResource resource = new InputStreamResource(new FileInputStream(file));
return ResponseEntity.ok()
        .headers(headers)
        .contentLength(file.length())
        .contentType(MediaType.parseMediaType("application/octet-stream"))
        .body(resource);

}

questionAnswers(1)

yourAnswerToTheQuestion