CreateSnapshotOptions extends BaseEC2RequestOptions { public CreateSnapshotOptions withDescription(String description) { formParameters.put("Description", checkNotNull(description, "description")); return this; }  CreateSnapshotOptions withDescription(String description); String getDescription();  }
@Test public void testWithDescription() { CreateSnapshotOptions options = new CreateSnapshotOptions(); options.withDescription("test"); assertEquals(options.buildFormParameters().get("Description"), ImmutableList.of("test")); }
@Test public void testWithDescriptionStatic() { CreateSnapshotOptions options = withDescription("test"); assertEquals(options.buildFormParameters().get("Description"), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testWithDescriptionNPE() { withDescription(null); }