ListDomainsOptions extends BaseHttpRequestOptions { public ListDomainsOptions maxNumberOfDomains(int maxNumberOfDomains) { checkArgument(maxNumberOfDomains > 0 && maxNumberOfDomains <= 100, "must be between 1-100"); formParameters.put("MaxNumberOfDomains", maxNumberOfDomains + ""); return this; }  ListDomainsOptions maxNumberOfDomains(int maxNumberOfDomains); String getMaxNumberOfDomains(); ListDomainsOptions nextToken(String nextToken); String getNextToken();  }
@Test public void testMaxNumberOfDomains() { ListDomainsOptions options = new ListDomainsOptions(); options.maxNumberOfDomains(1); assertEquals(options.buildFormParameters().get("MaxNumberOfDomains"), ImmutableList.of("1")); }
@Test public void testMaxNumberOfDomainsStatic() { ListDomainsOptions options = maxNumberOfDomains(1); assertEquals(options.buildFormParameters().get("MaxNumberOfDomains"), ImmutableList.of("1")); }