### Question:
AzureStorageClient { void uploadStream(InputStream inputStream, CloudBlockBlob blob) throws StorageException, IOException { Ensure.argIsNotNull(inputStream, "inputStream"); Ensure.argIsNotNull(blob, "blob"); BlobOutputStream bos = blob.openOutputStream(); copyStream(inputStream, bos, STREAM_BUFFER_SIZE); bos.close(); }    }### Answer:
@Test void UploadStream_NullInputStream_IllegalArgumentException() { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.uploadStream(null, blob)); }
@Test void UploadStream_NullBlob_IllegalArgumentException() throws IOException { try (InputStream stream = new FileInputStream(testFilePath)) { assertThrows( IllegalArgumentException.class, () -> azureStorageClient.uploadStream(stream, null)); } }