DescribeSpotPriceHistoryOptions extends BaseEC2RequestOptions { public DescribeSpotPriceHistoryOptions from(Date start) { formParameters.put("StartTime", service.iso8601DateFormat(checkNotNull(start, "start"))); 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 testFrom() { DescribeSpotPriceHistoryOptions options = new DescribeSpotPriceHistoryOptions(); options.from(test); assertEquals(options.buildFormParameters().get("StartTime"), ImmutableList.of("1970-05-23T21:21:18.910Z")); }
@Test public void testFromStatic() { DescribeSpotPriceHistoryOptions options = from(test); assertEquals(options.buildFormParameters().get("StartTime"), ImmutableList.of("1970-05-23T21:21:18.910Z")); }
@Test(expectedExceptions = NullPointerException.class) public void testFromNPE() { from(null); }