func (c *restCtx) Expect(cf CheckFunc) *restCtx {
	c.expect = cf
	return c
}
Expect let you set what you expect to receive. If cf is set, then you can do more
checks on the response and return error if the response was not fully acceptable
package edgetest
import (
	"github.com/ronaksoft/rony"
	dummyGateway "github.com/ronaksoft/rony/internal/gateway/dummy"
	"sync/atomic"
	"time"
)
type restCtx struct {
	id     uint64
	gw     *dummyGateway.Gateway
	err    error
	expect CheckFunc
	doneCh chan struct{}
	kvs    []*rony.KeyValue
	method string
	path   string
	body   []byte
}
func newRESTContext(gw *dummyGateway.Gateway) *restCtx {
	c := &restCtx{
		id:     atomic.AddUint64(&connID, 1),
		gw:     gw,
		doneCh: make(chan struct{}, 1),
	}
	return c
}
func (c *restCtx) Request(method, path string, body []byte, kvs ...*rony.KeyValue) *restCtx {
	c.method = method
	c.path = path
	c.body = body
	c.kvs = kvs
	return c
}