@@ -0,0 +1,1885 @@
+package com.filestack;%0A%0Aimport com.filestack.util.Util;%0Aimport java.io.IOException;%0Aimport java.util.Map;%0Aimport okhttp3.RequestBody;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class TestStorageOptions %7B%0A%0A  @Test%0A  public void testGetTask() %7B%0A    String correct = %22store=%22%0A        + %22access:private,%22%0A        + %22base64decode:false,%22%0A        + %22container:some_bucket,%22%0A        + %22filename:some_file.txt,%22%0A        + %22location:S3,%22%0A        + %22path:/some/path/,%22%0A        + %22region:us-east-1%22;%0A%0A    StorageOptions options = new StorageOptions.Builder()%0A        .filename(%22some_file.txt%22)%0A        .location(%22S3%22)%0A        .path(%22/some/path/%22)%0A        .container(%22some_bucket%22)%0A        .region(%22us-east-1%22)%0A        .access(%22private%22)%0A        .base64Decode(false)%0A        .build();%0A%0A    Assert.assertEquals(correct, options.getAsTask().toString());%0A  %7D%0A%0A  @Test%0A  public void testGetPartMap() throws IOException %7B%0A    StorageOptions options = new StorageOptions.Builder()%0A        .access(%22%3Caccess%3E%22)%0A        .container(%22%3Ccontainer%3E%22)%0A        .location(%22%3Clocation%3E%22)%0A        .path(%22%3Cpath%3E%22)%0A        .region(%22%3Cregion%3E%22)%0A        .build();%0A%0A    Map%3CString, RequestBody%3E map = options.getAsPartMap();%0A%0A    Assert.assertEquals(%22%3Caccess%3E%22, Util.partToString(map.get(%22store_access%22)));%0A    Assert.assertEquals(%22%3Ccontainer%3E%22, Util.partToString(map.get(%22store_container%22)));%0A    Assert.assertEquals(%22%3Clocation%3E%22, Util.partToString(map.get(%22store_location%22)));%0A    Assert.assertEquals(%22%3Cpath%3E%22, Util.partToString(map.get(%22store_path%22)));%0A    Assert.assertEquals(%22%3Cregion%3E%22, Util.partToString(map.get(%22store_region%22)));%0A  %7D%0A%0A  @Test%0A  public void testGetPartMapLocationDefault() throws Exception %7B%0A    StorageOptions options = new StorageOptions();%0A%0A    Map%3CString, RequestBody%3E map = options.getAsPartMap();%0A%0A    Assert.assertEquals(%22s3%22, Util.partToString(map.get(%22store_location%22)));%0A  %7D%0A%7D%0A

Add test for StorageOptions