Create factory to make assertions from operator