}
protected void testOptions(URL url, HTTPMethod method, FetchOptions options, ResponseHandler handler) throws Exception {
HTTPRequest request = new HTTPRequest(url, method, options);
URLFetchService service = URLFetchServiceFactory.getURLFetchService();
HTTPResponse response = service.fetch(request);
handler.handle(response);
}
protected static interface ResponseHandler {
void handle(HTTPResponse response) throws Exception;