add setMethods to repository mock