ServiceBindingBuilder extends AbstractServiceBindingBuilder { @Override public ServiceBindingBuilder methods(HttpMethod... methods) { return (ServiceBindingBuilder) super.methods(methods); } ServiceBindingBuilder(ServerBuilder serverBuilder); @Override ServiceBindingBuilder path(String pathPattern); @Override ServiceBindingBuilder pathPrefix(String prefix); @Override ServiceBindingBuilder methods(HttpMethod... methods); @Override ServiceBindingBuilder methods(Iterable<HttpMethod> methods); @Override ServiceBindingBuilder get(String pathPattern); @Override ServiceBindingBuilder post(String pathPattern); @Override ServiceBindingBuilder put(String pathPattern); @Override ServiceBindingBuilder patch(String pathPattern); @Override ServiceBindingBuilder delete(String pathPattern); @Override ServiceBindingBuilder options(String pathPattern); @Override ServiceBindingBuilder head(String pathPattern); @Override ServiceBindingBuilder trace(String pathPattern); @Override ServiceBindingBuilder connect(String pathPattern); @Override ServiceBindingBuilder consumes(MediaType... consumeTypes); @Override ServiceBindingBuilder consumes(Iterable<MediaType> consumeTypes); @Override ServiceBindingBuilder produces(MediaType... produceTypes); @Override ServiceBindingBuilder produces(Iterable<MediaType> produceTypes); @Override ServiceBindingBuilder matchesParams(String... paramPredicates); @Override ServiceBindingBuilder matchesParams(Iterable<String> paramPredicates); @Override ServiceBindingBuilder matchesParams(String paramName, Predicate<? super String> valuePredicate); @Override ServiceBindingBuilder matchesHeaders(String... headerPredicates); @Override ServiceBindingBuilder matchesHeaders(Iterable<String> headerPredicates); @Override ServiceBindingBuilder matchesHeaders(CharSequence headerName,
                                                Predicate<? super String> valuePredicate); @Override ServiceBindingBuilder addRoute(Route route); @Override ServiceBindingBuilder defaultServiceName(String defaultServiceName); @Override ServiceBindingBuilder defaultLogName(String defaultLogName); @Override ServiceBindingBuilder requestTimeout(Duration requestTimeout); @Override ServiceBindingBuilder requestTimeoutMillis(long requestTimeoutMillis); @Override ServiceBindingBuilder maxRequestLength(long maxRequestLength); @Override ServiceBindingBuilder verboseResponses(boolean verboseResponses); @Override ServiceBindingBuilder accessLogFormat(String accessLogFormat); @Override ServiceBindingBuilder accessLogWriter(AccessLogWriter accessLogWriter, boolean shutdownOnStop); @Override ServiceBindingBuilder decorator(Function<? super HttpService, ? extends HttpService> decorator); @Override @SafeVarargs final ServiceBindingBuilder decorators(
            Function<? super HttpService, ? extends HttpService>... decorators); @Override ServiceBindingBuilder decorators(
            Iterable<? extends Function<? super HttpService, ? extends HttpService>> decorators); ServerBuilder build(HttpService service);  }
@Test(expected = IllegalArgumentException.class) public void methodsCannotBeEmpty() { final ServiceBindingBuilder serviceBindingBuilder = new ServiceBindingBuilder(Server.builder()); serviceBindingBuilder.methods(ImmutableSet.of()); }