AWSDescribeImagesOptions extends DescribeImagesOptions { @Override public AWSDescribeImagesOptions executableBy(String identityId) { super.executableBy(identityId); return this; }  @Override AWSDescribeImagesOptions executableBy(String identityId); @Override AWSDescribeImagesOptions imageIds(String... imageIds); @Override AWSDescribeImagesOptions imageIds(Iterable<String> imageIds); @Override AWSDescribeImagesOptions ownedBy(String... owners); AWSDescribeImagesOptions filters(Multimap<String, String> filters); AWSDescribeImagesOptions filters(Map<String, String> filters); static final AWSDescribeImagesOptions NONE; }
@Test public void testExecutableBy() { AWSDescribeImagesOptions options = new AWSDescribeImagesOptions(); options.executableBy("test"); assertEquals(options.buildFormParameters().get("ExecutableBy"), ImmutableList.of("test")); }
@Test public void testExecutableByStatic() { AWSDescribeImagesOptions options = executableBy("test"); assertEquals(options.buildFormParameters().get("ExecutableBy"), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testExecutableByNPE() { executableBy(null); }