BundleInstanceS3StorageOptions extends BaseEC2RequestOptions { public BundleInstanceS3StorageOptions bucketOwnedBy(String ccessKeyId) { formParameters.put("Storage.S3.AWSAccessKeyId", checkNotNull(ccessKeyId, "ccessKeyId")); return this; }  @Override Multimap<String, String> buildFormParameters(); BundleInstanceS3StorageOptions bucketOwnedBy(String ccessKeyId); String getAwsAccessKeyId();  }
@Test public void testBucketOwnedBy() { BundleInstanceS3StorageOptions options = new BundleInstanceS3StorageOptions(); options.bucketOwnedBy("test"); assertEquals(options.buildFormParameters().get("Storage.S3.AWSAccessKeyId"), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testBucketOwnedByNPE() { bucketOwnedBy(null); }