@Test
 public void downloadToFile() {
   object.downloadObject(downloadedFile);
   assertTrue(downloadedFile.exists());
 }
 @Test
 public void downloadAsByteArray() {
   byte[] result = object.downloadObject();
   assertTrue(Arrays.equals(bytes, result));
 }