DescribeImagesOptions extends BaseEC2RequestOptions { public DescribeImagesOptions executableBy(String identityId) { formParameters.put("ExecutableBy", checkNotNull(identityId, "identityId")); return this; }  DescribeImagesOptions executableBy(String identityId); String getExecutableBy(); DescribeImagesOptions imageIds(String... imageIds); DescribeImagesOptions imageIds(Iterable<String> imageIds); Set<String> getImageIds(); DescribeImagesOptions ownedBy(String... owners); Set<String> getOwners(); static final DescribeImagesOptions NONE; }
@Test public void testExecutableBy() { DescribeImagesOptions options = new DescribeImagesOptions(); options.executableBy("test"); assertEquals(options.buildFormParameters().get("ExecutableBy"), ImmutableList.of("test")); }
@Test public void testExecutableByStatic() { DescribeImagesOptions options = executableBy("test"); assertEquals(options.buildFormParameters().get("ExecutableBy"), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testExecutableByNPE() { executableBy(null); }