AddServerOptions extends BaseHttpRequestOptions { public AddServerOptions asSandboxType() { checkState(!queryParameters.containsKey(IS_SANDBOX_KEY), "Can only have one sandbox option per server"); queryParameters.put(IS_SANDBOX_KEY, "true"); return this; }  AddServerOptions withDescription(String description); AddServerOptions asSandboxType();  }
@Test public void testAsSandboxType() { AddServerOptions options = new AddServerOptions(); options.asSandboxType(); assertEquals(options.buildQueryParameters().get("isSandbox"), ImmutableList.of("true")); }
@Test public void testAsSandboxTypeStatic() { AddServerOptions options = asSandboxType(); assertEquals(options.buildQueryParameters().get("isSandbox"), ImmutableList.of("true")); }