public RestMethod makeRestMethod() throws SoapUIException {
    RestMethodConfig methodConfig = RestMethodConfig.Factory.newInstance();
    methodConfig.setName("Get");
    methodConfig.setMethod("GET");
    final RestResource restResource = makeRestResource();
    RestMethod restMethod =
        new RestMethod(restResource, methodConfig) {
          @Override
          public RestRequestInterface.HttpMethod getMethod() {
            return RestRequestInterface.HttpMethod.GET;
          }

          @Override
          public RestResource getOperation() {
            return restResource;
          }
        };
    restResource.getConfig().setMethodArray(new RestMethodConfig[] {restMethod.getConfig()});
    return restMethod;
  }
 private RestMethod makeRestMethod(RestResource restResource) {
   return new RestMethod(restResource, RestMethodConfig.Factory.newInstance());
 }