Start blob service locally. Place the following code at the end of lib.rs:
```
#[tokio::test]
async fn upload_test() {
let mut upload_state = initialize_upload_state().await.unwrap();
let holder = "test".to_string();
let hash = "test".to_string();
let chunks = vec!["test".to_string(), "test".to_string()];
start_upload(&mut upload_state, holder, hash).await.unwrap();
for chunk in chunks.iter() {
upload_chunk(&mut upload_state, &chunk).await.unwrap();
}
resume_upload(upload_state).await.unwrap();
}
```
Test should pass. Then run:
```
aws --endpoint-url=http://localhost:4566 s3 cp s3://commapp-blob/test localfile
cat localfile
```
You should see 'testtest` as localfile content