@Test
 public void getDocumentoClasificado() throws Exception {
   Documento documento = clasificarDocumentoDeTest(TEST_FILE_CONTENT);
   BinaryResponse response = gestorDocumentalService.getDocumento(documento);
   assertEquals(TEST_FILENAME, response.nombre);
   assertEquals(TEST_FILE_CONTENT, IO.readContentAsString(response.contenido.getInputStream()));
 }
  @Test
  public void getDocumento() throws Exception {
    Documento d = saveTmpDocumento(TEST_FILE_CONTENT, TEST_FILENAME);

    BinaryResponse response = gestorDocumentalService.getDocumento(d);
    assertEquals(TEST_FILENAME, response.nombre);

    String responseContent = IO.readContentAsString(response.contenido.getInputStream());
    assertEquals(TEST_FILE_CONTENT, responseContent);
  }