DescribeSpotPriceHistoryOptions extends BaseEC2RequestOptions { public DescribeSpotPriceHistoryOptions instanceType(String type) { formParameters.put("InstanceType.1", checkNotNull(type, "type")); 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 testInstanceType() { DescribeSpotPriceHistoryOptions options = new DescribeSpotPriceHistoryOptions(); options.instanceType("test"); assertEquals(options.buildFormParameters().get("InstanceType.1"), ImmutableList.of("test")); }
@Test public void testInstanceTypeStatic() { DescribeSpotPriceHistoryOptions options = instanceType("test"); assertEquals(options.buildFormParameters().get("InstanceType.1"), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testInstanceTypeNPE() { instanceType(null); }