@@ -0,0 +1,1629 @@
+package test_with_remote_apis.methods.samples;%0A%0Aimport com.slack.api.Slack;%0Aimport com.slack.api.methods.response.files.FilesUploadResponse;%0Aimport config.Constants;%0Aimport okhttp3.OkHttpClient;%0Aimport okhttp3.Request;%0Aimport okhttp3.Response;%0Aimport org.junit.Test;%0A%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0A%0Aimport static java.util.stream.Collectors.joining;%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0A/**%0A * For https://github.com/slackapi/java-slack-sdk/issues/453%0A */%0Apublic class Issue453_DownloadingFiles_Test %7B%0A%0A    @Test%0A    public void sample() throws Exception %7B%0A        Slack slack = Slack.getInstance();%0A        String token = System.getenv(Constants.SLACK_SDK_TEST_BOT_TOKEN);%0A        FilesUploadResponse uploadResult = slack.methods(token)%0A                .filesUpload(r -%3E r.content(%22This is a file!%22).filename(%22sample.txt%22));%0A%0A        OkHttpClient okHttpClient = new OkHttpClient();%0A        Request request = new Request.Builder()%0A                .get()%0A                .url(uploadResult.getFile().getUrlPrivateDownload())%0A                .header(%22Authorization%22, %22Bearer %22 + token)%0A                .build();%0A        Response response = okHttpClient.newCall(request).execute();%0A%0A        // You can find the file at slack-api-client/target/sample.txt%0A        Path localFilepath = Paths.get(%22target/sample.txt%22);%0A        Files.write(localFilepath, response.body().bytes());%0A%0A        String body = Files.readAllLines(localFilepath).stream().collect(joining());%0A        assertThat(body, is(%22This is a file!%22));%0A    %7D%0A%7D%0A

Add a sample for #453