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