public void VarArgsTemplateVariables() { Uri requestUri = new Uri("http://example.com/hotels/42/bookings/21"); HttpMethod requestMethod = HttpMethod.GET; Expect.Call <IClientHttpRequest>(requestFactory.CreateRequest(requestUri, requestMethod)).Return(request); ExpectGetResponse(); Expect.Call <bool>(errorHandler.HasError(requestUri, requestMethod, response)).Return(false); mocks.ReplayAll(); template.Execute <object>("http://example.com/hotels/{hotel}/bookings/{booking}", HttpMethod.GET, null, null, "42", "21"); }