CreateSharedIpGroupOptions implements MapBinder { public CreateSharedIpGroupOptions withServer(int id) { checkArgument(id > 0, "server id must be a positive number"); this.serverId = id; return this; }  @Override R bindToRequest(R request, Map<String, Object> postParams); @Override R bindToRequest(R request, Object toBind); CreateSharedIpGroupOptions withServer(int id);  }
@Test public void testWithServer() { CreateSharedIpGroupOptions options = new CreateSharedIpGroupOptions(); options.withServer(3); HttpRequest request = buildRequest(options); assertSharedIpGroup(request); }
@Test public void testWithServerStatic() { CreateSharedIpGroupOptions options = withServer(3); HttpRequest request = buildRequest(options); assertSharedIpGroup(request); }