### Question:
AzureStorageClient { CloudBlockBlob uploadStreamToBlob(InputStream inputStream, String blobName, String storageUri, boolean shouldCompress) throws IOException, URISyntaxException, StorageException { log.debug("uploadStreamToBlob: blobName: {}, storageUri: {}", blobName, storageUri); Ensure.argIsNotNull(inputStream, "inputStream"); Ensure.stringIsNotBlank(blobName, "blobName"); Ensure.stringIsNotBlank(storageUri, "storageUri"); CloudBlobContainer container = new CloudBlobContainer(new URI(storageUri)); CloudBlockBlob blob = container.getBlockBlobReference(blobName); if (shouldCompress) { compressAndUploadStream(inputStream, blob); } else { uploadStream(inputStream, blob); } return blob; }    }### Answer:
@Test void UploadStreamToBlob_NullInputStream_IllegalArgumentException() { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.uploadStreamToBlob(null, "blobName", "storageUri", false)); }
@Test void UploadStreamToBlob_NullBlobName_IllegalArgumentException() throws IOException { try (InputStream stream = new FileInputStream(testFilePath)) { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.uploadStreamToBlob(stream, null, "storageUri", false)); } }
@Test void UploadStreamToBlob_NullStorageUri_IllegalArgumentException() throws IOException { try (InputStream stream = new FileInputStream(testFilePath)) { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.uploadStreamToBlob(stream, "blobName", null, false)); } }