DescribeSpotPriceHistoryOptions extends BaseEC2RequestOptions { public DescribeSpotPriceHistoryOptions productDescription(String description) { formParameters.put("ProductDescription", checkNotNull(description, "description")); return this; }  DescribeSpotPriceHistoryOptions from(Date start); DescribeSpotPriceHistoryOptions to(Date end); DescribeSpotPriceHistoryOptions instanceType(String type); DescribeSpotPriceHistoryOptions productDescription(String description); static final DescribeSpotPriceHistoryOptions NONE; }
@Test public void testDescription() { DescribeSpotPriceHistoryOptions options = new DescribeSpotPriceHistoryOptions(); options.productDescription("test"); assertEquals(options.buildFormParameters().get("ProductDescription"), ImmutableList.of("test")); }
@Test public void testDescriptionStatic() { DescribeSpotPriceHistoryOptions options = productDescription("test"); assertEquals(options.buildFormParameters().get("ProductDescription"), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testDescriptionNPE() { productDescription(null); }