DescribeSnapshotsOptions extends BaseEC2RequestOptions { public DescribeSnapshotsOptions restorableBy(String... accountIds) { indexFormValuesWithPrefix("RestorableBy", accountIds); return this; }  DescribeSnapshotsOptions restorableBy(String... accountIds); String getRestorableBy(); DescribeSnapshotsOptions snapshotIds(String... snapshotIds); Set<String> getSnapshotIds(); DescribeSnapshotsOptions ownedBy(String... owners); Set<String> getOwners();  }
@Test public void testRestorableBy() { DescribeSnapshotsOptions options = new DescribeSnapshotsOptions(); options.restorableBy("test"); assertEquals(options.buildFormParameters().get("RestorableBy.1"), ImmutableList.of("test")); }
@Test public void testRestorableByStatic() { DescribeSnapshotsOptions options = restorableBy("test"); assertEquals(options.buildFormParameters().get("RestorableBy.1"), ImmutableList.of("test")); }