@Test public void testCloudFileDownloadToByteArray() throws URISyntaxException, StorageException, IOException { CloudFile file = this.share.getRootDirectoryReference().getFileReference("file1"); FileTestHelper.doDownloadTest(file, 1 * 512, 2 * 512, 0); FileTestHelper.doDownloadTest(file, 1 * 512, 2 * 512, 1 * 512); FileTestHelper.doDownloadTest(file, 2 * 512, 4 * 512, 1 * 512); FileTestHelper.doDownloadTest(file, 5 * 1024 * 1024, 5 * 1024 * 1024, 0); FileTestHelper.doDownloadTest(file, 5 * 1024 * 1024, 6 * 1024 * 1024, 512); }